summaryrefslogtreecommitdiff
path: root/src/npc/npc4F.c
blob: 442f9868fb9320884cc2edd0b2ff374cb342f65c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * @file npc4F.c
 * @ingroup NPCs
 *
 * @brief NPC 4F
 */
#include "npc.h"
#include "asm.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;
    }
}