Пример #1
0
        private void SetDittoAttributes(uint displayPokemonId)
        {
            const HoloPokemonMove moveTransfromFast = HoloPokemonMove.TransformFast;
            const HoloPokemonId   moveStruggle      = HoloPokemonId.Ditto;

            DisplayPokemonId = displayPokemonId;
            PokemonId        = DittoPokemonId;
            Form             = 0;
            Move1            = (uint)moveTransfromFast;
            Move2            = (uint)moveStruggle;
            Gender           = 3;
            Costume          = 0;
            Size             = 0;
            Weight           = 0;
        }
Пример #2
0
        private string getPokemonImageUrl(HoloPokemonId pokemon)
        {
            switch (pokemon)
            {
            case HoloPokemonId.MrRime:
                return($"https://img.pokemondb.net/sprites/go/normal/mr-rime.png");

            case HoloPokemonId.MrMime:
                return($"https://img.pokemondb.net/sprites/bank/normal/mr-mime.png");

            case HoloPokemonId.MimeJr:
                return($"https://img.pokemondb.net/sprites/bank/normal/mime-jr.png");

            default:
                return($"https://img.pokemondb.net/sprites/bank/normal/{pokemon.ToString("g").ToLower().Replace("female", "-f").Replace("male", "-m")}.png");
            }
        }