private static bool IsWurmpleEvoValid(PKM pkm)
        {
            uint evoVal = PKX.GetWurmpleEvoVal(pkm.EncryptionConstant);
            int  wIndex = Array.IndexOf(WurmpleEvolutions, pkm.Species) / 2;

            return(evoVal == wIndex);
        }
Example #2
0
        private void VerifyECPIDWurmple(LegalityAnalysis data)
        {
            var  pkm    = data.pkm;
            uint evoVal = PKX.GetWurmpleEvoVal(pkm.EncryptionConstant);

            if (pkm.Species == 265)
            {
                var spec = evoVal == 0 ? LegalityAnalysis.SpeciesStrings[267] : LegalityAnalysis.SpeciesStrings[269];
                var msg  = string.Format(V212, spec);
                data.AddLine(GetValid(msg, CheckIdentifier.EC));
            }
            else if (evoVal != Array.IndexOf(Legal.WurmpleEvolutions, pkm.Species) / 2)
            {
                data.AddLine(GetInvalid(V210, CheckIdentifier.EC));
            }
        }