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:
24
worlds/ladx/LADXR/patches/instrument.py
Normal file
24
worlds/ladx/LADXR/patches/instrument.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from ..assembler import ASM
|
||||
|
||||
|
||||
def fixInstruments(rom):
|
||||
rom.patch(0x03, 0x1EA9, 0x1EAE, "", fill_nop=True)
|
||||
rom.patch(0x03, 0x1EB9, 0x1EC8, ASM("""
|
||||
; Render sprite
|
||||
ld a, $05
|
||||
rst 8
|
||||
"""), fill_nop=True)
|
||||
|
||||
# Patch the message and instrument giving code
|
||||
rom.patch(0x03, 0x1EE3, 0x1EF6, ASM("""
|
||||
; Handle item effect
|
||||
ld a, $06 ; giveItemMultiworld
|
||||
rst 8
|
||||
|
||||
;Show message
|
||||
ld a, $0A ; showMessageMultiworld
|
||||
rst 8
|
||||
"""), fill_nop=True)
|
||||
|
||||
# Color cycle palette 7 instead of 1
|
||||
rom.patch(0x36, 0x30F0, ASM("ld de, $DC5C"), ASM("ld de, $DC84"))
|
Reference in New Issue
Block a user