Пример #1
0
        public static IReadOnlyList <PKM> GetAllPKM(this SaveFile sav)
        {
            var pkms = new List <PKM>();

            if (sav.HasBox)
            {
                pkms.AddRange(sav.BoxData);
            }
            if (sav.HasParty)
            {
                pkms.AddRange(sav.PartyData);
            }

            var extra = sav.GetExtraPKM();

            pkms.AddRange(extra);
            pkms.RemoveAll(z => z.Species == 0);
            return(pkms);
        }
Пример #2
0
 public static PKM[] GetExtraPKM(this SaveFile sav) => sav.GetExtraPKM(sav.GetExtraSlots());