summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2018-09-20 16:58:10 +0200
committerxCrystal <rgr.crystal@gmail.com>2018-09-20 16:58:10 +0200
commit602a9a97bce5ab51abcac33e5e464923f0d47279 (patch)
tree3169b511c814f026ab45bec77dc5801601a3d94a /src
parentb0f4c725dccb621ff42552aae0809f605818e57b (diff)
Dump practice duel text table
Diffstat (limited to 'src')
-rw-r--r--src/engine/bank01.asm134
-rw-r--r--src/text/text2.asm10
-rw-r--r--src/text/text_offsets.asm10
3 files changed, 111 insertions, 43 deletions
diff --git a/src/engine/bank01.asm b/src/engine/bank01.asm
index 1729b77..ba62547 100644
--- a/src/engine/bank01.asm
+++ b/src/engine/bank01.asm
@@ -2664,62 +2664,62 @@ DoPracticeDuelAction: ; 51e7 (1:51e7)
PracticeDuelActionTable: ; 51f8 (1:51f8)
dw $0000
- dw Func_520e
- dw Func_521a
- dw Func_522a
- dw Func_5236
- dw Func_5245
- dw Func_5256
- dw Func_5278
- dw Func_5284
- dw Func_529b
- dw Func_52b0
+ dw PracticeDuel_520e
+ dw PracticeDuel_521a
+ dw PracticeDuel_522a
+ dw PracticeDuel_5236
+ dw PracticeDuel_5245
+ dw PracticeDuel_5256
+ dw PracticeDuel_5278
+ dw PracticeDuel_5284
+ dw PracticeDuel_529b
+ dw PracticeDuel_52b0
; 0x520e
-Func_520e: ; 520e (1:520e)
+PracticeDuel_520e: ; 520e (1:520e)
call DisplayPracticeDuelPlayerHandScreen
call EnableLCD
- ldtx hl, Text01a4
- jp Func_52bc
+ ldtx hl, DrawSevenCardsPracticeDuelText
+ jp PrintDrMasonInstructions
; 0x521a
-Func_521a: ; 521a (1:521a)
+PracticeDuel_521a: ; 521a (1:521a)
ld a, [wLoadedCard1ID]
cp GOLDEEN
ret z
- ldtx hl, Text01a5
+ ldtx hl, ChooseGoldeenPracticeDuelText
ldtx de, DrMasonText
scf
- jp Func_52bc
+ jp PrintDrMasonInstructions
; 0x522a
-Func_522a: ; 522a (1:522a)
+PracticeDuel_522a: ; 522a (1:522a)
call DisplayPracticeDuelPlayerHandScreen
call EnableLCD
- ldtx hl, Text01a6
- jp Func_52bc
+ ldtx hl, PutPokemonOnBenchPracticeDuelText
+ jp PrintDrMasonInstructions
; 0x5236
-Func_5236: ; 5236 (1:5236)
+PracticeDuel_5236: ; 5236 (1:5236)
ld a, DUELVARS_NUMBER_OF_POKEMON_IN_PLAY_AREA
call GetTurnDuelistVariable
cp 2
ret z
- ldtx hl, Text01a7
+ ldtx hl, ChooseStaryuPracticeDuelText
scf
- jp Func_52bc
+ jp PrintDrMasonInstructions
; 0x5245
-Func_5245: ; 5245 (1:5245)
+PracticeDuel_5245: ; 5245 (1:5245)
call DisplayPracticeDuelPlayerHandScreen
call EnableLCD
ld a, $ff
ld [wcc00], a
- ldtx hl, Text01a8
- jp Func_52bc
+ ldtx hl, PressBToFinishPracticeDuelText
+ jp PrintDrMasonInstructions
; 0x5256
-Func_5256: ; 5256 (1:5256)
+PracticeDuel_5256: ; 5256 (1:5256)
call $5351
call EnableLCD
ld a, [wDuelTurns]
@@ -2735,7 +2735,7 @@ Func_5256: ; 5256 (1:5256)
jp $5382
; 0x5278
-Func_5278: ; 5278 (1:5278)
+PracticeDuel_5278: ; 5278 (1:5278)
ld a, [wDuelTurns]
srl a
ld hl, $541f
@@ -2743,9 +2743,9 @@ Func_5278: ; 5278 (1:5278)
ret nc
; fallthrough
-Func_5284: ; 5284 (1:5284)
+PracticeDuel_5284: ; 5284 (1:5284)
ldtx hl, Text01da
- call Func_52bc
+ call PrintDrMasonInstructions
ld a, $02
call BankswitchSRAM
ld de, sCurrentDuel
@@ -2756,7 +2756,7 @@ Func_5284: ; 5284 (1:5284)
ret
; 0x529b
-Func_529b: ; 529b (1:529b)
+PracticeDuel_529b: ; 529b (1:529b)
ld a, [wDuelTurns]
cp 7
jr z, .asm_52a4
@@ -2769,7 +2769,7 @@ Func_529b: ; 529b (1:529b)
jp $5396
; 0x52b0
-Func_52b0: ; 52b0 (1:52b0)
+PracticeDuel_52b0: ; 52b0 (1:52b0)
ldh a, [hTempPlayAreaLocation_ff9d]
cp PLAY_AREA_BENCH_1
ret z
@@ -2778,7 +2778,8 @@ Func_52b0: ; 52b0 (1:52b0)
scf
; fallthrough
-Func_52bc: ; 52bc (1:52bc)
+; print a text box with given the text id at hl, labeled as 'Dr. Mason'
+PrintDrMasonInstructions: ; 52bc (1:52bc)
push af
ldtx de, DrMasonText
call PrintScrollableText_WithTextBoxLabel
@@ -2786,7 +2787,74 @@ Func_52bc: ; 52bc (1:52bc)
ret
; 0x52c5
- INCROM $52c5, $54c8
+PracticeDuelTextPointerTable: ; 52c5 (1:52c5)
+ dw PracticeDuelText_52d5
+ dw PracticeDuelText_52e5
+ dw PracticeDuelText_52f5
+ dw PracticeDuelText_5305
+ dw PracticeDuelText_5315
+ dw PracticeDuelText_5320
+ dw PracticeDuelText_5330
+ dw PracticeDuelText_533b
+; 0x52d5
+
+practicetext: MACRO
+ db \1 ; Y coord to place text
+ tx \2 ; help text
+ tx \3 ; instruction text
+ENDM
+
+PracticeDuelText_52d5:
+ practicetext 2, Text01c0, Text01a9
+ practicetext 5, Text01c1, Text01aa
+ practicetext 8, Text01c2, Text01ab
+ db $00
+
+PracticeDuelText_52e5:
+ practicetext 2, Text01c3, Text01ac
+ practicetext 5, Text01c4, Text01ad
+ practicetext 8, Text01c5, Text01ae
+ db $00
+
+PracticeDuelText_52f5:
+ practicetext 2, Text01c6, Text01af
+ practicetext 5, Text01c7, Text01b0
+ practicetext 8, Text01c8, Text01b1
+ db $00
+
+PracticeDuelText_5305:
+ practicetext 2, Text01c9, Text01b2
+ practicetext 5, Text01ca, Text01b3
+ practicetext 8, Text01cb, Text01b4
+ db $00
+
+PracticeDuelText_5315:
+ practicetext 2, Text01cc, Text01b5
+ practicetext 6, Text01cd, Text01b6
+ db $00
+
+PracticeDuelText_5320:
+ practicetext 2, Text01ce, Text01b7
+ practicetext 5, Text01cf, Text01b8
+ practicetext 8, Text01d0, Text01b9
+ db $00
+
+PracticeDuelText_5330:
+ practicetext 2, Text01d1, Text01ba
+ practicetext 5, Text01d2, Text01bb
+ db $00
+
+PracticeDuelText_533b:
+ practicetext 2, Text01d3, Text01bc
+ practicetext 5, Text01d4, Text01bd
+ db $00
+
+PracticeDuelText_5346:
+ practicetext 2, Text01d5, Text01be
+ practicetext 7, Text01d6, Text01bf
+ db $00
+
+ INCROM $5351, $54c8
; display BOXMSG_PLAYERS_TURN or BOXMSG_OPPONENTS_TURN and print
; DuelistsTurnText in a textbox. also call ExchangeRNG.
diff --git a/src/text/text2.asm b/src/text/text2.asm
index 934a2ec..24d28c9 100644
--- a/src/text/text2.asm
+++ b/src/text/text2.asm
@@ -906,7 +906,7 @@ DrMasonText: ; 3a122 (e:6122)
text "Dr. Mason"
done
-Text01a4: ; 3a12d (e:612d)
+DrawSevenCardsPracticeDuelText: ; 3a12d (e:612d)
text "Draw 7 cards,"
line ""
line "and get ready for the battle!"
@@ -919,12 +919,12 @@ Text01a4: ; 3a12d (e:612d)
line "choose Goldeen."
done
-Text01a5: ; 3a204 (e:6204)
+ChooseGoldeenPracticeDuelText: ; 3a204 (e:6204)
text "Choose Goldeen for this"
line "practice duel, OK?"
done
-Text01a6: ; 3a230 (e:6230)
+PutPokemonOnBenchPracticeDuelText: ; 3a230 (e:6230)
text "Next, put your Pokémon on your"
line "Bench."
line "You can switch Benched Pokémon"
@@ -935,12 +935,12 @@ Text01a6: ; 3a230 (e:6230)
line "put it there."
done
-Text01a7: ; 3a2f6 (e:62f6)
+ChooseStaryuPracticeDuelText: ; 3a2f6 (e:62f6)
text "Choose Staryu for this"
line "practice duel, OK?"
done
-Text01a8: ; 3a321 (e:6321)
+PressBToFinishPracticeDuelText: ; 3a321 (e:6321)
text "When you have no Pokémon to put on"
line "your Bench, press the B Button to"
line "finish."
diff --git a/src/text/text_offsets.asm b/src/text/text_offsets.asm
index d09504f..dd55e82 100644
--- a/src/text/text_offsets.asm
+++ b/src/text/text_offsets.asm
@@ -421,11 +421,11 @@ TextOffsets:: ; 34000 (d:4000)
textpointer Text01a1 ; 0x01a1
textpointer Text01a2 ; 0x01a2
textpointer DrMasonText ; 0x01a3
- textpointer Text01a4 ; 0x01a4
- textpointer Text01a5 ; 0x01a5
- textpointer Text01a6 ; 0x01a6
- textpointer Text01a7 ; 0x01a7
- textpointer Text01a8 ; 0x01a8
+ textpointer DrawSevenCardsPracticeDuelText ; 0x01a4
+ textpointer ChooseGoldeenPracticeDuelText ; 0x01a5
+ textpointer PutPokemonOnBenchPracticeDuelText ; 0x01a6
+ textpointer ChooseStaryuPracticeDuelText ; 0x01a7
+ textpointer PressBToFinishPracticeDuelText ; 0x01a8
textpointer Text01a9 ; 0x01a9
textpointer Text01aa ; 0x01aa
textpointer Text01ab ; 0x01ab