Add forme specific randomization

Based off how the game treats its formes
This commit is contained in:
Kurt
2017-01-12 22:44:50 -08:00
parent 8dfab897fd
commit d08ecefdf3

View File

@@ -98,6 +98,10 @@ internal static int GetRandomForme(int species, bool mega, bool alola, PersonalI
return 0;
if (stats[species].FormeCount <= 1)
return 0;
if (species == 664 || species == 665 || species == 666) // vivillon
return 30; // save file specific
if (species == 774) // minior
return (int)(Util.rnd32()%7);
if (alola && Legal.EvolveToAlolanForms.Contains(species))
return (int)(Util.rnd32()%2);
if (!Legal.Mega_ORAS.Contains((ushort)species) || mega)