func_80AB39BC OK

This commit is contained in:
tom-overton 2021-11-01 23:59:52 -07:00
parent 4e78ab3a46
commit 4a50759cfd
2 changed files with 27 additions and 2 deletions

View File

@ -322,7 +322,31 @@ void func_80AB3240(ObjTokeidai* this, GlobalContext* globalCtx) {
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Tokeidai/func_80AB38B0.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/ovl_Obj_Tokeidai/func_80AB39BC.s")
void func_80AB39BC(ObjTokeidai* this, GlobalContext* globalCtx) {
s32 type;
if (this->unk_154 > 0) {
if ((this->unk_154 & 1) != 0) {
this->unk_15E = this->unk_156 + 0xD48;
} else {
this->unk_15E = 0xD48 - this->unk_156;
if (this->unk_156 > 0) {
this->unk_156 -= 4;
}
}
this->unk_154 += -1;
} else {
type = OBJ_TOKEIDAI_TYPE(&this->actor);
if ((type == 2) || (type == 5)) {
Audio_PlayActorSound2(&this->actor, NA_SE_EV_CLOCK_TOWER_FALL);
}
this->unk_15E = 0xD48;
this->actionFunc = func_80AB38B0;
this->unk_154 = 0;
this->unk_156 = 0xA;
this->unk_164 = 0;
}
}
void func_80AB3A7C(ObjTokeidai* this, GlobalContext* globalCtx) {
s32 type;

View File

@ -24,7 +24,8 @@ typedef struct ObjTokeidai {
/* 0x015E */ s16 unk_15E;
/* 0x0160 */ s16 unk_160;
/* 0x0162 */ s16 unk_162;
/* 0x0164 */ char unk_164[0x4];
/* 0x0164 */ s16 unk_164;
/* 0x0166 */ char unk_166[0x2];
/* 0x0168 */ s32 unk_168;
/* 0x016C */ s32 unk_16C;
/* 0x0170 */ u16 unk_170;