mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-04-25 15:47:19 -05:00
Fixed logic for Type Themed Trainers. (#477)
The logic failed to properly detect "GYM6" as a GYM trainer that needed to have Type themed Pokemon. Same for ELITE trainers. Type themed trainers still sometimes have non-typed Pokemon. Looking into that now. Also want to reduce duplicate Pokemon.
This commit is contained in:
parent
927830bf11
commit
3cff2cc06d
|
|
@ -547,7 +547,9 @@ private void Randomize()
|
|||
// Trainer Type/Mega Evo
|
||||
int type = GetRandomType(i);
|
||||
bool mevo = rEnsureMEvo.Contains(i);
|
||||
bool typerand = (rTypeTheme && !rGymE4Only) || (rTypeTheme && rImportant[i] != null && ImportantClasses.Contains(rImportant[i]));
|
||||
bool isImportantClass = rImportant[i] != null && (rImportant[i].Contains("GYM") || rImportant[i].Contains("ELITE") || rImportant[i].Contains("CHAMPION"));
|
||||
bool typerand = (rTypeTheme && !rGymE4Only) || (rTypeTheme && isImportantClass);
|
||||
|
||||
rSpeciesRand.rType = typerand;
|
||||
|
||||
byte[] trd = trdata[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user