Ejemplo n.º 1
0
        public EncounterStatic getSuggestedMetInfo()
        {
            if (pkm == null)
            {
                return(null);
            }

            if (pkm.WasEgg)
            {
                return new EncounterStatic
                       {
                           Species  = Legal.getBaseSpecies(pkm, lvl: 100),
                           Location = getSuggestedEggMetLocation(pkm),
                           Level    = 1,
                       }
            }
            ;

            var capture = Legal.getCaptureLocation(pkm);

            if (capture != null)
            {
                return new EncounterStatic
                       {
                           Species  = capture.Slots.First().Species,
                           Location = capture.Location,
                           Level    = capture.Slots.First().LevelMin,
                       }
            }
            ;

            var encounter = Legal.getStaticLocation(pkm);

            return(encounter);
        }