Beispiel #1
0
        public static bool IsWeatherBoosted(this PokedexPokemon pkmn, WeatherCondition weather)
        {
            var types     = pkmn?.Types;
            var isBoosted = types?.Exists(x => Strings.WeatherBoosts[weather].Contains(x)) ?? false;

            return(isBoosted);
        }
Beispiel #2
0
        public static string GetWeatherEmojiIcon(this WeatherCondition weather)
        {
            var key       = $"weather_{Convert.ToInt32(weather)}";
            var emojiId   = MasterFile.Instance.Emojis[key];
            var emojiName = emojiId > 0 ? string.Format(Strings.EmojiSchema, key, emojiId) : weather.ToString();

            return(emojiName);
        }
Beispiel #3
0
 public string GetWeatherIcon(string style, WeatherCondition weatherType)
 {
     return(_iconStyles[style] + "weather/" + (int)weatherType + ".png");
 }
Beispiel #4
0
 public string GetWeather(WeatherCondition weather)
 {
     return(Translate($"weather_{(int)weather}"));
 }