diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-24 02:47:39 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-24 02:47:39 -0600 |
commit | 52b72f0012fe7a5f73b81c8ef6fdc36fa76872e2 (patch) | |
tree | a6e703548cb53ad49ea0ec09027775202857603f | |
parent | e74e33a4f340d2301470a5c5b260532574250f88 (diff) |
TextEndBattle is only used once
hg-commit-id: c038c49301fc
-rw-r--r-- | common.asm | 15 | ||||
-rw-r--r-- | extras/pretty_trainer_headers.py | 2 |
2 files changed, 14 insertions, 3 deletions
@@ -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" |