diff options
| author | Bryan Bishop <kanzure@gmail.com> | 2012-05-21 01:34:21 -0500 | 
|---|---|---|
| committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-21 01:34:21 -0500 | 
| commit | 9ea35422f8e54811a6ad51c06bb4300c146bc832 (patch) | |
| tree | 88e591aad53c9cc3ea4190a7e0c5eef0bb1ea69c /extras | |
| parent | 377a212322a47c7117163010d7a1648131400afe (diff) | |
add trainer id to trainer fragment headers for grunts
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/crystal.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/extras/crystal.py b/extras/crystal.py index 1e836ac9a..4a14b1cb9 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -3435,11 +3435,15 @@ class TrainerFragment(Command):          # 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)          # ---- give better labels to the objects created by TrainerFragment ---- | 
