mirror of
https://github.com/zeldaret/tmc
synced 2026-06-25 10:02:06 -04:00
20 lines
383 B
C
20 lines
383 B
C
/**
|
|
* @file npc4F.c
|
|
* @ingroup NPCs
|
|
*
|
|
* @brief NPC 4F
|
|
*/
|
|
#define NENT_DEPRECATED
|
|
#include "npc.h"
|
|
|
|
void NPC4F(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action++;
|
|
InitAnimationForceUpdate(this, this->type);
|
|
}
|
|
UpdateAnimationSingleFrame(this);
|
|
if (this->frameDuration == 0xfe) {
|
|
this->frameDuration = (Random() & 0x1f) + 0x14;
|
|
}
|
|
}
|