Example #1
0
        private CheckResult VerifyG1OTStadium(PKM pkm, string tr, IVersion s)
        {
            if (pkm.OT_Gender != 0)
            {
                return(GetInvalid(LG1OTGender));
            }

            int tid = pkm.TID;

            if (pkm.Japanese)
            {
                if (tid == Legal.GetGBStadiumOTID_JPN(s.Version) && Legal.Stadium1JP == tr)
                {
                    return(GetValid(LG1StadiumJapanese));
                }
            }
            else
            {
                if (s.Version == GameVersion.Stadium && tid == 2000)
                {
                    if (tr == "STADIUM" || tr == "STADE" || tr == "STADIO" || tr == "ESTADIO")
                    {
                        return(GetValid(LG1StadiumInternational));
                    }
                }
                else // Stadium2
                {
                    if (tid == 2000 && tr == "Stadium")
                    {
                        return(GetValid(LG1StadiumInternational));
                    }

                    if (tid == 2001 && (tr == "Stade" || tr == "Stadion" || tr == "Stadio" || tr == "Estadio"))
                    {
                        return(GetValid(LG1StadiumInternational));
                    }
                }
            }
            return(GetInvalid(LG1Stadium));
        }