Skip to content

Commit

Permalink
Fix small keys during init.
Browse files Browse the repository at this point in the history
Fix swamp archery not giving the proper prize.
  • Loading branch information
PhlexPlexico committed Dec 22, 2023
1 parent 571362a commit 2ce4cc5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/mm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ SECTIONS{
}

.patch_OverrideQuiverArcherySwamp 0x3EA2B0 : {
*(.patch_OverrideQuiverArchery)
*(.patch_OverrideQuiverArcheryTwo)
}

.patch_OverrideFairyGiveItem 0x3BECAC : {
Expand Down
5 changes: 5 additions & 0 deletions code/source/asm/patches.s
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ patch_RemoveGoronMaskCheckDarmani:
patch_OverrideQuiverArchery:
mov r2,#0x47

.section .patch_OverrideQuiverArcheryTwo
.global patch_OverrideQuiverArcheryTwo
patch_OverrideQuiverArcheryTwo:
mov r2,#0x47

.section .patch_OverrideFairyGiveItem
.global OverrideFairyItemID_patch
OverrideFairyItemID_patch:
Expand Down
6 changes: 6 additions & 0 deletions code/source/rnd/savefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,12 @@ namespace rnd {
saveData.inventory.great_bay_temple_keys = 3;
saveData.inventory.stone_tower_temple_keys = 4;
// give starting spirit keys for vanilla key locations
} else {
// Init to 0 as the game inits to 255.
saveData.inventory.woodfall_temple_keys = 0;
saveData.inventory.snowhead_temple_keys = 0;
saveData.inventory.great_bay_temple_keys = 0;
saveData.inventory.stone_tower_temple_keys = 0;
}

// give boss keys
Expand Down

0 comments on commit 2ce4cc5

Please sign in to comment.