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:
zig-for
2023-03-21 01:26:03 +09:00
committed by GitHub
parent 67bf12369a
commit 81a239325d
180 changed files with 24191 additions and 2 deletions

View 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)