mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Links Awakening: Implement New Game (#1334)
Adds Link's Awakening: DX. Fully imports and forks LADXR, with permission - https://github.com/daid/LADXR
This commit is contained in:
20
worlds/ladx/LADXR/patches/bomb.py
Normal file
20
worlds/ladx/LADXR/patches/bomb.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from ..assembler import ASM
|
||||
|
||||
|
||||
def onlyDropBombsWhenHaveBombs(rom):
|
||||
rom.patch(0x03, 0x1FC5, ASM("call $608C"), ASM("call $50B2"))
|
||||
# We use some of the unused chest code space here to remove the bomb if you do not have bombs in your inventory.
|
||||
rom.patch(0x03, 0x10B2, 0x112A, ASM("""
|
||||
ld e, INV_SIZE
|
||||
ld hl, $DB00
|
||||
ld a, $02
|
||||
loop:
|
||||
cp [hl]
|
||||
jr z, resume
|
||||
dec e
|
||||
inc hl
|
||||
jr nz, loop
|
||||
jp $3F8D ; unload entity
|
||||
resume:
|
||||
jp $608C
|
||||
"""), fill_nop=True)
|
||||
Reference in New Issue
Block a user