ref: fafb53ebf94e1501bf285c0229fbd61cc3755f35
parent: 11177b9b7d6257c1ec3118296e010e243ec5bb74
author: Bryan Bishop <[email protected]>
date: Sat May 19 22:21:26 EDT 2012
fix RIVAL1 trainer id labeling
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3626,7 +3626,11 @@
seed = self.name
if "?" in seed:
- seed = trainer_group_names[self.trainer_group_id]["name"]+"_"+seed[-1]
+ if seed[-2].isdigit():
+ x = 2
+ else:
+ x = 1
+ seed = trainer_group_names[self.trainer_group_id]["name"]+"_"+seed[-x:]
elif self.trainer_group_id == 0x1f and "EXECUTIVE" in seed:
seed = "GRUNT_"+seed