mirror of https://github.com/zeldaret/tmc.git
Match sub_08027C54
This commit is contained in:
parent
3e556b393f
commit
203fe4242c
|
|
@ -18,30 +18,6 @@
|
|||
|
||||
|
||||
|
||||
thumb_func_start sub_08027C54
|
||||
sub_08027C54: @ 0x08027C54
|
||||
push {lr}
|
||||
ldr r2, _08027C74 @ =gUnk_080CC2DC
|
||||
adds r1, r0, #0
|
||||
adds r1, #0x84
|
||||
ldr r1, [r1]
|
||||
ldrb r1, [r1, #4]
|
||||
adds r1, r1, r2
|
||||
ldr r0, [r0, #0x54]
|
||||
adds r0, #0x45
|
||||
ldrb r1, [r1]
|
||||
ldrb r0, [r0]
|
||||
cmp r1, r0
|
||||
bhi _08027C78
|
||||
movs r0, #0
|
||||
b _08027C7A
|
||||
.align 2, 0
|
||||
_08027C74: .4byte gUnk_080CC2DC
|
||||
_08027C78:
|
||||
movs r0, #1
|
||||
_08027C7A:
|
||||
pop {pc}
|
||||
|
||||
thumb_func_start sub_08027C7C
|
||||
sub_08027C7C: @ 0x08027C7C
|
||||
push {r4, r5, lr}
|
||||
|
|
|
|||
|
|
@ -1792,3 +1792,11 @@ void sub_08027BBC(ChuchuBossEntity* this) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool32 sub_08027C54(ChuchuBossEntity* this) {
|
||||
if ((u8)gUnk_080CC2DC[this->unk_84->unk_04] > super->child->health) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue