shithub: pokered

Download patch

ref: 48284ccd22620362db1023dbc93158bb8010bd86
parent: cd587686b2e4b84db398057809c7ed9c2d721b8f
author: Bryan Bishop <kanzure@gmail.com>
date: Wed Jan 4 19:16:00 EST 2012

tiny update to print out a list of referenced text counts

hg-commit-id: 92ed453f1b47


--- a/extras/extract_maps.py
+++ b/extras/extract_maps.py
@@ -20,6 +20,8 @@
 #number of maps in this list
 map_count = 0xF8 #including the 0th the total is is 248 or 0xF8
 
+bad_maps = [0x0b, 0x45, 0x4b, 0x4e, 0x69, 0x6a, 0x6b, 0x6d, 0x6e, 0x6f, 0x70, 0x72, 0x73, 0x74, 0x75, 0xad, 0xcc, 0xcd, 0xce, 0xe7, 0xed, 0xee, 0xf1, 0xf2, 0xf3, 0xf4]
+
 maps = {
          0x00: "Pallet Town",
          0x01: "Viridian City",
@@ -659,5 +661,9 @@
     read_all_map_headers()
     #print json.dumps(map_headers)
 
-    print map_headers[37]
+    #print map_headers[37]
+
+    for header in map_headers:
+        if header in bad_maps: continue
+        print "map " + str(header) + " has " + str(map_headers[header]["number_of_referenced_texts"]) + " referenced texts"