Files
tmc/src/npc/carlov.c
T
2022-03-28 15:23:06 -07:00

23 lines
509 B
C

#include "sound.h"
#include "entity.h"
#include "room.h"
#include "npc.h"
void Carlov(Entity* this) {
if (this->action == 0) {
this->action++;
sub_0807DD50(this);
} else {
sub_0807DD94(this, 0);
}
if ((this->frame & 0x10) != 0) {
this->frame = this->frame & 0xef;
EnqueueSFX(SFX_PLACE_OBJ);
InitScreenShake(0x10, 0);
}
if ((this->frame & 0x20) != 0) {
this->frame = this->frame & 0xdf;
EnqueueSFX(SFX_PLY_JUMP);
}
}