mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-01 21:36:43 -05:00
Add forme specific randomization
Based off how the game treats its formes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user