UNLOCK_ALL unlocks the cap boxes

This commit is contained in:
Reonu
2021-12-24 21:54:52 +00:00
parent 247dd8eab9
commit bb32509898

View File

@@ -46,10 +46,14 @@ void bhv_rotating_exclamation_mark_loop(void) {
}
void exclamation_box_act_init(void) {
#ifdef UNLOCK_ALL
u8 tangible = TRUE;
#else
u8 tangible = save_file_get_flags() & sCapSaveFlags[o->oBehParams2ndByte];
#endif
if (o->oBehParams2ndByte < EXCLAMATION_BOX_BP_KOOPA_SHELL) {
o->oAnimState = o->oBehParams2ndByte;
if ((save_file_get_flags() & sCapSaveFlags[o->oBehParams2ndByte])
|| (GET_BPARAM1(o->oBehParams) != EXCLAMATION_BOX_BP1_NEEDS_SWITCH)) {
if ((tangible) || (GET_BPARAM1(o->oBehParams) != EXCLAMATION_BOX_BP1_NEEDS_SWITCH)) {
o->oAction = EXCLAMATION_BOX_ACT_ACTIVE;
} else {
o->oAction = EXCLAMATION_BOX_ACT_OUTLINE;