public static void Gen345Shiny(this PKM pkm, Shiny type)
        {
            bool flag = pkm.IsEgg || pkm.WasEgg || pkm.Met_Level <= 1;

            if (flag)
            {
                pkm.SetPIDGender(pkm.Gender);
                CommonEdits.SetShiny(pkm, type);
                return;
            }

            if (pkm.Format == 3)
            {
                pkm.Gen3Shiny(type);
            }
            if (pkm.Format == 4)
            {
                pkm.Gen4Shiny(type);
            }
            if (pkm.Format == 5)
            {
                pkm.Gen5Shiny(type);
            }

            SetBasicData(pkm);
        }