aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Route16Gate2F.asm
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2023-07-13 20:27:56 -0500
committerGitHub <noreply@github.com>2023-07-13 21:27:56 -0400
commitd001ced41b53271373753de835a9c3b3413dc318 (patch)
treeff2db7f403bddfcdeb12e50def8411cafedcdd5e /scripts/Route16Gate2F.asm
parentMake wCurrentBoxNum a byte instead of word (#414) (diff)
downloadpokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.gz
pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.xz
pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.zip
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
Diffstat (limited to 'scripts/Route16Gate2F.asm')
-rw-r--r--scripts/Route16Gate2F.asm41
1 files changed, 21 insertions, 20 deletions
diff --git a/scripts/Route16Gate2F.asm b/scripts/Route16Gate2F.asm
index 27e147a1..e21359ba 100644
--- a/scripts/Route16Gate2F.asm
+++ b/scripts/Route16Gate2F.asm
@@ -2,45 +2,46 @@ Route16Gate2F_Script:
jp DisableAutoTextBoxDrawing
Route16Gate2F_TextPointers:
- dw Route16GateUpstairsText1
- dw Route16GateUpstairsText2
- dw Route16GateUpstairsText3
- dw Route16GateUpstairsText4
+ def_text_pointers
+ dw_const Route16Gate2FLittleBoyText, TEXT_ROUTE16GATE2F_LITTLE_BOY
+ dw_const Route16Gate2FLittleGirlText, TEXT_ROUTE16GATE2F_LITTLE_GIRL
+ dw_const Route16Gate2FLeftBinocularsText, TEXT_ROUTE16GATE2F_LEFT_BINOCULARS
+ dw_const Route16Gate2FRightBinocularsText, TEXT_ROUTE16GATE2F_RIGHT_BINOCULARS
-Route16GateUpstairsText1:
+Route16Gate2FLittleBoyText:
text_asm
- ld hl, Route16GateUpstairsText_49820
+ ld hl, .Text
call PrintText
jp TextScriptEnd
-Route16GateUpstairsText_49820:
- text_far _Route16GateUpstairsText_49820
+.Text:
+ text_far _Route16Gate2FLittleBoyText
text_end
-Route16GateUpstairsText2:
+Route16Gate2FLittleGirlText:
text_asm
- ld hl, Route16GateUpstairsText_4982f
+ ld hl, .Text
call PrintText
jp TextScriptEnd
-Route16GateUpstairsText_4982f:
- text_far _Route16GateUpstairsText_4982f
+.Text:
+ text_far _Route16Gate2FLittleGirlText
text_end
-Route16GateUpstairsText3:
+Route16Gate2FLeftBinocularsText:
text_asm
- ld hl, Route16GateUpstairsText_4983b
+ ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
-Route16GateUpstairsText_4983b:
- text_far _Route16GateUpstairsText_4983b
+.Text:
+ text_far _Route16Gate2FLeftBinocularsText
text_end
-Route16GateUpstairsText4:
+Route16Gate2FRightBinocularsText:
text_asm
- ld hl, Route16GateUpstairsText_49847
+ ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
-Route16GateUpstairsText_49847:
- text_far _Route16GateUpstairsText_49847
+.Text:
+ text_far _Route16Gate2FRightBinocularsText
text_end