Skip to content

Commit c4a378c

Browse files
committed
Fix
1 parent 96eedc3 commit c4a378c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

randomizer/Patching/ASMPatcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2779,6 +2779,10 @@ def patchAssembly(ROM_COPY, spoiler):
27792779
writeFunction(ROM_COPY, 0x8002792C, Overlay.Critter, "getCountOfBlockerRequiredItem", offset_dict)
27802780
writeFunction(ROM_COPY, 0x800278EC, Overlay.Critter, "displayCountOnBLockerTeeth", offset_dict)
27812781
writeFunction(ROM_COPY, 0x800275AC, Overlay.Critter, "displayCountOnBLockerTeeth", offset_dict)
2782+
# Fix B Locker range default (fixes bug with helm)
2783+
writeValue(ROM_COPY, 0x800275B8, Overlay.Critter, 0x3C18, offset_dict) # Loader mips function into t8 reg
2784+
writeFloatUpper(ROM_COPY, 0x800275BA, Overlay.Critter, 100, offset_dict) # Set default range to 100
2785+
writeValue(ROM_COPY, 0x800275C4, Overlay.Critter, 0xAC38A1B0, offset_dict, 4) # write to addr
27822786

27832787
if settings.has_password:
27842788
writeHook(ROM_COPY, 0x80028CC8, Overlay.Menu, "GoToPassword", offset_dict) # Enables handler of whether to go to the password screen or not

0 commit comments

Comments
 (0)