shithub: pokered

Download patch

ref: 91a041f1ad369b99a2ae4a427181f37bcce095bc
parent: d0aa2ed0633713d5195016afe69d14de632c8a19
author: Bryan Bishop <kanzure@gmail.com>
date: Fri Jan 27 17:15:45 EST 2012

insert MewBaseStats

hg-commit-id: 35f5a02b395f


--- a/extras/insert_texts.py
+++ b/extras/insert_texts.py
@@ -713,7 +713,7 @@
     """
     output = ""
     rom = extract_maps.rom
-    base_address = 0x383de + (28 * (id))
+    base_address = 0x425b #0x383de + (28 * (id))
     
     pokedex_number = id
     mon_name = get_mon_name(id)
@@ -775,7 +775,7 @@
 def insert_base_stats(id):
     insert_asm = base_data_pretty_printer(id)
 
-    address = 0x383de + (28 * (id))
+    address = 0x425b #0x383de + (28 * (id))
     line_number = find_incbin_to_replace_for(address)
     label = get_mon_name(id).title() + "BaseStats"
     if line_number == None:
@@ -836,8 +836,8 @@
     load_asm()
     isolate_incbins()
     process_incbins()
-    #insert_base_stats(1)
-    insert_all_base_stats()
+    insert_base_stats(150)
+    #insert_all_base_stats()
 
     #load texts (these two have different formats)
     #all_texts = pretty_map_headers.analyze_texts.analyze_texts()
--- a/main.asm
+++ b/main.asm
@@ -6102,7 +6102,37 @@
 	INCBIN "pic/monback/mewb.pic"
 ; 0x425b
 
-INCBIN "baserom.gbc",$425b,$42a7 - $425b
+MewBaseStats: ; 0x425b
+	db 151 ; pokedex id
+	db 100 ; base hp
+	db 100 ; base attack
+	db 100 ; base defense
+	db 100 ; base speed
+	db 100 ; base special
+
+	db PSYCHIC ; species type 1
+	db PSYCHIC ; species type 2
+
+	db 45 ; catch rate
+	db 64 ; base exp yield
+	db $55 ; sprite dimensions
+
+	dw MewPicFront
+	dw MewPicBack
+	
+	; attacks known at lvl 0
+	db POUND
+	db 0
+	db 0
+	db 0
+
+	db 3 ; growth rate
+	
+	; include learnset directly
+	INCBIN "baserom.gbc",$426f,$4276 - $426f
+	db $ff ; probably "learn anything" not padding
+
+INCBIN "baserom.gbc",$4277,$30
 
 UnnamedText_42a7: ; 0x42a7
 	TX_FAR SafariZoneEatingText