mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
add trainer id to trainer fragment headers for grunts
This commit is contained in:
parent
377a212322
commit
9ea35422f8
@ -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 ----
|
||||
|
Loading…
Reference in New Issue
Block a user