mirror of https://github.com/pret/pokecrystal.git
better comments on trainer_group_report
This commit is contained in:
parent
810e20cc04
commit
38726204c8
|
@ -3525,12 +3525,14 @@ def trainer_name_from_group(group_id, trainer_id=0):
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def trainer_group_report():
|
def trainer_group_report():
|
||||||
|
""" Reports how many trainer ids are used in each trainer group.
|
||||||
|
"""
|
||||||
output = ""
|
output = ""
|
||||||
total = 0
|
total = 0
|
||||||
for trainer_group_id in trainer_group_maximums.keys():
|
for trainer_group_id in trainer_group_maximums.keys():
|
||||||
group_name = trainer_group_names[trainer_group_id]["name"]
|
group_name = trainer_group_names[trainer_group_id]["name"]
|
||||||
first_name = trainer_name_from_group(trainer_group_id).replace("\n", "")
|
first_name = trainer_name_from_group(trainer_group_id).replace("\n", "")
|
||||||
trainers = len(set(trainer_group_maximums[trainer_group_id]))
|
trainers = len(trainer_group_maximums[trainer_group_id])
|
||||||
total += trainers
|
total += trainers
|
||||||
output += "group "+hex(trainer_group_id)+":\n"
|
output += "group "+hex(trainer_group_id)+":\n"
|
||||||
output += "\tname: "+group_name+"\n"
|
output += "\tname: "+group_name+"\n"
|
||||||
|
|
Loading…
Reference in New Issue