mirror of
https://github.com/zeldaret/tmc
synced 2026-06-23 01:10:12 -04:00
23 lines
509 B
C
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);
|
|
}
|
|
}
|