shithub: pokered

Download patch

ref: 07016dcf455f0da3a6de4857b6de46801dd5a79f
parent: 52661e4a44c068a86b2423eb920515d02238a460
author: Bryan Bishop <kanzure@gmail.com>
date: Sat Jan 14 16:49:55 EST 2012

insert _VermilionCityText14 machop text

hg-commit-id: 22d36f8bc08e


--- a/common.asm
+++ b/common.asm
@@ -9465,8 +9465,9 @@
     ld hl, $5933
     ret
 
-;db $17, $6b, $58, $29, $50
-INCBIN "baserom.gbc",$19933,$5
+VermilionCityText14: ; 0x19933
+    TX_FAR _VermilionCityText14
+    db $50
 
 VermilionCityText6: ; 0x19938
     TX_FAR _VermilionCityText6
@@ -41080,7 +41081,11 @@
     db $0, "MACHOP: Guoh!", $4f
     db "Gogogoh!@@"
 
-INCBIN "baserom.gbc",$a586b,$a5891 - $a586b
+_VermilionCityText14: ; 0xa586b
+    db $0, $51
+    db "A MACHOP is", $4f
+    db "stomping the land", $55
+    db "flat.", $57
 
 _VermilionCityText6: ; 0xa5891
     db $0, "S.S.ANNE is a", $4f
--- a/extras/analyze_texts.py
+++ b/extras/analyze_texts.py
@@ -403,6 +403,7 @@
 
     first_line = True
     for this_command in commands.keys():
+        if not "lines" in commands[this_command].keys(): continue
         lines = commands[this_command]["lines"]
     
         #add the ending byte to the last line- always seems $57
--- a/extras/insert_texts.py
+++ b/extras/insert_texts.py
@@ -600,7 +600,8 @@
     #load incbins
     reset_incbins()
 
-    scan_for_map_scripts_pointer()
+    #scan_for_map_scripts_pointer()
+    insert_text(0xa586b, "_VermilionCityText14")
 
     #insert _ViridianCityText10
     #insert_tx_far(1, 10)