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); }
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); }
public string GetWeatherIcon(string style, WeatherCondition weatherType) { return(_iconStyles[style] + "weather/" + (int)weatherType + ".png"); }
public string GetWeather(WeatherCondition weather) { return(Translate($"weather_{(int)weather}")); }