Пример #1
0
        protected override bool IsMatchForm(PKM pkm, DexLevel evo)
        {
            if (SkipFormCheck)
            {
                return(true);
            }

            if (AltFormInfo.IsTotemForm(Species, Form, Generation))
            {
                var expectForm = pkm.Format == 7 ? Form : AltFormInfo.GetTotemBaseForm(Species, Form);
                return(expectForm == evo.Form);
            }

            return(Form == evo.Form || AltFormInfo.IsFormChangeable(Species, Form, pkm.AltForm, pkm.Format));
        }
Пример #2
0
 private static bool NoHatchFromEggForm(int species, int form, int gen)
 {
     if (form == 0)
     {
         return(false);
     }
     if (AltFormInfo.IsTotemForm(species, form, gen))
     {
         return(true);
     }
     if (species == (int)Species.Pichu)
     {
         return(true);                                                            // can't get Spiky Ear Pichu eggs
     }
     if (species == (int)Species.Sinistea || species == (int)Species.Polteageist) // Antique = impossible
     {
         return(true);                                                            // can't get Antique eggs
     }
     return(false);
 }