summaryrefslogtreecommitdiff
path: root/scripts/route5gate.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/route5gate.asm')
-rwxr-xr-xscripts/route5gate.asm22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/route5gate.asm b/scripts/route5gate.asm
index ea5feda0..d7abeff5 100755
--- a/scripts/route5gate.asm
+++ b/scripts/route5gate.asm
@@ -10,22 +10,22 @@ Route5GateScriptPointers: ; 1df3f (7:5f3f)
Route5GateScript_1df43: ; 1df43 (7:5f43)
ld a, $40
- ld [$ccd3], a
+ ld [wccd3], a
ld a, $1
- ld [$cd38], a
+ ld [wcd38], a
jp Func_3486
Route5GateScript0: ; 1df50 (7:5f50)
- ld a, [$d728]
+ ld a, [wd728]
bit 6, a
ret nz
ld hl, CoordsData_1df8f
call ArePlayerCoordsInArray
ret nc
ld a, $2
- ld [$d528], a
+ ld [wd528], a
xor a
- ld [H_CURRENTPRESSEDBUTTONS], a
+ ld [hJoyHeld], a
callba RemoveGuardDrink
ld a, [$ff00+$db]
and a
@@ -41,7 +41,7 @@ Route5GateScript0: ; 1df50 (7:5f50)
ld a, $3
ld [$ff00+$8c], a
call DisplayTextID
- ld hl, $d728
+ ld hl, wd728
set 6, [hl]
ret
@@ -51,15 +51,15 @@ CoordsData_1df8f: ; 1df8f (7:5f8f)
db $ff
Route5GateScript1: ; 1df94 (7:5f94)
- ld a, [$cd38]
+ ld a, [wcd38]
and a
ret nz
call Delay3
xor a
- ld [wJoypadForbiddenButtonsMask], a
+ ld [wJoyIgnore], a
ld [W_ROUTE5GATECURSCRIPT], a
ret
-
+
Route5GateTextPointers: ; 1dfa4 (7:5fa4)
dw Route5GateText1
dw Route5GateText2
@@ -70,7 +70,7 @@ Route7GateText1: ; 1dfaa (7:5faa)
Route6GateText1: ; 1dfaa (7:5faa)
Route5GateText1: ; 1dfaa (7:5faa)
db $8
- ld a, [$d728]
+ ld a, [wd728]
bit 6, a
jr nz, .asm_88856 ; 0x1dfb0 $2c
callba RemoveGuardDrink
@@ -86,7 +86,7 @@ Route5GateText1: ; 1dfaa (7:5faa)
.asm_768a2 ; 0x1dfd0
ld hl, Route5GateText3
call PrintText
- ld hl, $d728
+ ld hl, wd728
set 6, [hl]
jp TextScriptEnd
.asm_88856 ; 0x1dfde