shithub: pokecrystal

Download patch

ref: 9ea35422f8e54811a6ad51c06bb4300c146bc832
parent: 377a212322a47c7117163010d7a1648131400afe
author: Bryan Bishop <[email protected]>
date: Sun May 20 21:34:21 EDT 2012

add trainer id to trainer fragment headers for grunts

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3435,10 +3435,14 @@
         # give this object a possibly better label
         label = "Trainer"
         if "uses_numeric_trainer_ids" in trainer_group_names[trainer_group].keys():
-            label += string.capwords(trainer_group_names[trainer_group]["constant"]).replace("Lt_surge", "Lt_Surge")
+            label += string.capwords(trainer_group_names[trainer_group]["constant"])
+            if len(trainer_group_names[trainer_group]["trainer_names"]) > 1:
+                label += str(trainer_id)
         else:
             label += string.capwords(trainer_group_names[trainer_group]["constant"]) + \
                      string.capwords(trainer_group_names[trainer_group]["trainer_names"][trainer_id-1])
+
+        label = label.replace("Gruntm", "GruntM").replace("Gruntf", "GruntF").replace("Lt_surge", "LtSurge")
 
         self.label = Label(name=label, address=self.address, object=self)