Skip to content

Commit

Permalink
Remove quiver restrictions when giving items in archery mini games. (#95
Browse files Browse the repository at this point in the history
)

This should fix people not getting rewards from the games if they already have the largest quiver.
  • Loading branch information
PhlexPlexico authored Sep 7, 2024
1 parent 7946ead commit 79e8283
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/mm.ld
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,18 @@ SECTIONS{
*(.patch_OverrideWalletSpiderHouse)
}

.patch_OverrideArcheryTownQuiverLimit 0x3E50B8 : {
*(.patch_OverrideArcheryTownQuiverLimit)
}

.patch_OverrideQuiverArcheryTown 0x3E50E4 : {
*(.patch_OverrideQuiverArchery)
}

.patch_OverrideArcheryTownQuiverLimitTwo 0x3EA278 : {
*(.patch_OverrideArcheryTownQuiverLimitTwo)
}

.patch_OverrideQuiverArcherySwamp 0x3EA2B0 : {
*(.patch_OverrideQuiverArcheryTwo)
}
Expand Down
10 changes: 10 additions & 0 deletions code/source/asm/item_override_patches.s
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,21 @@ patch_RemoveGoronMaskCheckDarmani:
patch_CheckOshExtData:
bl hook_CheckOshExtData

.section .patch_OverrideArcheryTownQuiverLimit
.global patch_OverrideArcheryTownQuiverLimit
patch_OverrideArcheryTownQuiverLimit:
nop

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

.section .patch_OverrideArcheryTownQuiverLimitTwo
.global patch_OverrideArcheryTownQuiverLimitTwo
patch_OverrideArcheryTownQuiverLimitTwo:
nop

.section .patch_OverrideQuiverArcheryTwo
.global patch_OverrideQuiverArcheryTwo
patch_OverrideQuiverArcheryTwo:
Expand Down

0 comments on commit 79e8283

Please sign in to comment.