From d08ecefdf30ce7a8b31ff93463b7223c47909360 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 12 Jan 2017 22:44:50 -0800 Subject: [PATCH] Add forme specific randomization Based off how the game treats its formes --- pk3DS/Legality/Randomizer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pk3DS/Legality/Randomizer.cs b/pk3DS/Legality/Randomizer.cs index 4a6eb11..c7f93f7 100644 --- a/pk3DS/Legality/Randomizer.cs +++ b/pk3DS/Legality/Randomizer.cs @@ -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)