Skip to content

Commit

Permalink
Remove temple clearing check from Koume's messaging scripts. (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Jun 27, 2024
1 parent 95a3290 commit 828e822
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions code/mm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@ SECTIONS{
*(.patch_HandleOcarinaHooks)
}

.patch_RemoveWoodfallClearConditionFromBoatHouse 0x6737E8 : {
*(.patch_RemoveWoodfallClearConditionFromBoatHouse)
}

. = 0x61CD8C;
/* Addr already 4 byte aligned! */
/* . = ALIGN(4); */
Expand Down
15 changes: 15 additions & 0 deletions code/source/asm/patches.s
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,21 @@ patch_CheckMasksOnMoon:
RemoveJimWhenExitingHideout_patch:
cmp r0,r0

@ This patch performs the same event check to see if Koume was saved,
@ overriding the check to see if woodfall was cleared. This is due
@ to the fact you could beat the temple out of logic from saving koume
@ so this removes the temple check, and checks to see if she was saved twice.
@ For more information on the message system, see the following links in MM decomp
@ https://github.com/zeldaret/mm/blob/6541532abb5c03088ad67748bbb23965c654127e/src/overlays/actors/ovl_En_Dnh/z_en_dnh.c#L21
@ https://github.com/zeldaret/mm/blob/main/include/z64msgevent.h#L354
.section .patch_RemoveWoodfallClearConditionFromBoatHouse
.global patch_RemoveWoodfallClearConditionFromBoatHouse
patch_RemoveWoodfallClearConditionFromBoatHouse:
.byte 0x0C
.byte 0x08
.byte 0x00
.byte 0x08

.section .patch_loader
.global loader_patch
loader_patch:
Expand Down
4 changes: 2 additions & 2 deletions code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ namespace rnd {
rItemOverrides[0].value.looksLikeItemId = 0x56;
rItemOverrides[1].key.scene = 0x6F;
rItemOverrides[1].key.type = ItemOverride_Type::OVR_COLLECTABLE;
rItemOverrides[1].value.getItemId = 0x54;
rItemOverrides[1].value.looksLikeItemId = 0x54;
rItemOverrides[1].value.getItemId = 0x59;
rItemOverrides[1].value.looksLikeItemId = 0x59;
rItemOverrides[2].key.scene = 0x12;
rItemOverrides[2].key.type = ItemOverride_Type::OVR_COLLECTABLE;
rItemOverrides[2].value.getItemId = 0x37;
Expand Down

0 comments on commit 828e822

Please sign in to comment.