summaryrefslogtreecommitdiff
path: root/scripts/route18gate.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 15:06:23 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 23:33:10 -0500
commitc7796024590fec48ac79756793c1a6e3b54daf8f (patch)
tree0d61caa7ebe429995a61e800d1d78c3a82aec886 /scripts/route18gate.asm
parent90430e6dee9e207dc0b618d07566f83617343f60 (diff)
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/route18gate.asm')
-rwxr-xr-xscripts/route18gate.asm112
1 files changed, 0 insertions, 112 deletions
diff --git a/scripts/route18gate.asm b/scripts/route18gate.asm
deleted file mode 100755
index 893801a1..00000000
--- a/scripts/route18gate.asm
+++ /dev/null
@@ -1,112 +0,0 @@
-Route18GateScript:
- ld hl, wd732
- res 5, [hl]
- call EnableAutoTextBoxDrawing
- ld a, [wRoute18GateCurScript]
- ld hl, Route18GateScriptPointers
- jp CallFunctionInTable
-
-Route18GateScriptPointers:
- dw Route18GateScript0
- dw Route18GateScript1
- dw Route18GateScript2
- dw Route18GateScript3
-
-Route18GateScript0:
- call Route16GateScript_49755
- ret nz
- ld hl, CoordsData_498cc
- call ArePlayerCoordsInArray
- ret nc
- ld a, $2
- ld [hSpriteIndexOrTextID], a
- call DisplayTextID
- xor a
- ld [hJoyHeld], a
- ld a, [wCoordIndex]
- cp $1
- jr z, .asm_498c6
- ld a, [wCoordIndex]
- dec a
- ld [wSimulatedJoypadStatesIndex], a
- ld b, 0
- ld c, a
- ld a, D_UP
- ld hl, wSimulatedJoypadStatesEnd
- call FillMemory
- call StartSimulatingJoypadStates
- ld a, $1
- ld [wRoute18GateCurScript], a
- ret
-.asm_498c6
- ld a, $2
- ld [wRoute18GateCurScript], a
- ret
-
-CoordsData_498cc:
- db $03,$04
- db $04,$04
- db $05,$04
- db $06,$04
- db $FF
-
-Route18GateScript1:
- ld a, [wSimulatedJoypadStatesIndex]
- and a
- ret nz
- ld a, $f0
- ld [wJoyIgnore], a
-
-Route18GateScript2:
- ld a, $1
- ld [hSpriteIndexOrTextID], a
- call DisplayTextID
- ld a, $1
- ld [wSimulatedJoypadStatesIndex], a
- ld a, D_RIGHT
- ld [wSimulatedJoypadStatesEnd], a
- call StartSimulatingJoypadStates
- ld a, $3
- ld [wRoute18GateCurScript], a
- ret
-
-Route18GateScript3:
- ld a, [wSimulatedJoypadStatesIndex]
- and a
- ret nz
- xor a
- ld [wJoyIgnore], a
- ld hl, wd730
- res 7, [hl]
- ld a, $0
- ld [wRoute18GateCurScript], a
- ret
-
-Route18GateTextPointers:
- dw Route18GateText1
- dw Route18GateText2
-
-Route18GateText1:
- TX_ASM
- call Route16GateScript_49755
- jr z, .asm_3c84d
- ld hl, Route18GateText_4992d
- call PrintText
- jr .asm_a8410
-.asm_3c84d
- ld hl, Route18GateText_49928
- call PrintText
-.asm_a8410
- jp TextScriptEnd
-
-Route18GateText_49928:
- TX_FAR _Route18GateText_49928
- db "@"
-
-Route18GateText_4992d:
- TX_FAR _Route18GateText_4992d
- db "@"
-
-Route18GateText2:
- TX_FAR _Route18GateText_49932
- db "@"