shithub: pokecrystal

Download patch

ref: 4c4517121331d8db6e508432e4e872a02299a94f
parent: 6f49b01c4b8ec37f5321dd11835780eaa3211542
author: Bryan Bishop <[email protected]>
date: Sat May 19 20:20:31 EDT 2012

add 'trainer_names' key to each trainer header in trainer_group_names

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3901,7 +3901,7 @@
     if debug:
         print "starting to make trainer names and give ids to repeated trainer names"
 
-    i = 1 
+    i = 1
     for header in trainer_group_table.headers:
         trainer_names = [] # (name, trainer_header)
         dupes = set()
@@ -3922,6 +3922,8 @@
 
         # now add the trainer names to trainer_group_names
         trainer_group_names[i]["trainer_names"] = [theader.make_constant_name() for theader in header.individual_trainer_headers]
+
+        i += 1
 
     if debug:
         print "done improving trainer names"