From 094e9d1da5fdf0e2af319b178adb562657a210dd Mon Sep 17 00:00:00 2001 From: Phlex <3514085+PhlexPlexico@users.noreply.github.com> Date: Thu, 5 Sep 2024 07:51:58 -0600 Subject: [PATCH] Remove quiver restrictions when giving items in archery mini games. This should fix people not getting rewards from the games if they already have the largest quiver. --- code/mm.ld | 8 ++++++++ code/source/asm/item_override_patches.s | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/code/mm.ld b/code/mm.ld index b2536ad..a704722 100644 --- a/code/mm.ld +++ b/code/mm.ld @@ -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) } diff --git a/code/source/asm/item_override_patches.s b/code/source/asm/item_override_patches.s index fe921fd..946bea6 100644 --- a/code/source/asm/item_override_patches.s +++ b/code/source/asm/item_override_patches.s @@ -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: