summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.asm15
-rw-r--r--extras/pretty_trainer_headers.py2
2 files changed, 14 insertions, 3 deletions
diff --git a/common.asm b/common.asm
index 78688c1e..273ada57 100644
--- a/common.asm
+++ b/common.asm
@@ -14407,7 +14407,18 @@ INCBIN "baserom.gbc",$19d21,$7f
SilphCo4Texts: ; 0x19da0
dw SilphCo4Text1, SilphCo4Text2, SilphCo4Text3, SilphCo4Text4, SilphCo4Text5, SilphCo4Text6, SilphCo4Text7
-INCBIN "baserom.gbc",$19dae,$25
+INCBIN "baserom.gbc",$19dae,$19dc6 - $19dae
+
+TrainerHeader_19dc6: ; 0x19dc6
+ db $4 ; flag's bit
+ db ($4 << 4) ; trainer's view range
+ dw $d829 ; flag's byte
+ dw UnnamedText_19e26 ; 0x5e26 TextBeforeBattle
+ dw UnnamedText_19e30 ; 0x5e30 TextAfterBattle
+ dw UnnamedText_19e2b ; 0x5e2b TextEndBattle
+; 0x19dd0
+
+INCBIN "baserom.gbc",$19dd0,$19dd3 - $19dd0
SilphCo4Text1: ; 0x19dd3
db $08 ; asm
@@ -14470,7 +14481,7 @@ UnnamedText_19e17: ; 0x19e17
SilphCo4Text4: ; 0x19e1c
db $08 ; asm
- ld hl, $5dc6
+ ld hl, TrainerHeader_19dc6
call LoadTrainerHeader
jp TextScriptEnd
diff --git a/extras/pretty_trainer_headers.py b/extras/pretty_trainer_headers.py
index 69e06d81..5d0f56a9 100644
--- a/extras/pretty_trainer_headers.py
+++ b/extras/pretty_trainer_headers.py
@@ -91,7 +91,7 @@ def pretty_print_trainer_header(address, label=None):
label = "$" + hex(partial_pointer)[2:]
#sys.exit(0)
- output += spacing + "dw " + label + " ; " + hex(partial_pointer) + " TextEndBattle\n"
+ #output += spacing + "dw " + label + " ; " + hex(partial_pointer) + " TextEndBattle\n"
output += "; " + hex(address+10) + "\n"