public string FogDescription(double fogRoll, double fogChance) { string desc = ""; foreach (ISDVWeather weather in CurrentWeathers) { if (weather.WeatherType == "Fog") { FerngillFog fog = (FerngillFog)weather; desc += fog.FogDescription(fogRoll, fogChance); } } return desc; }
public void TenMinuteUpdate() { foreach (ISDVWeather weather in CurrentWeathers) { weather.UpdateWeather(); } //update fog for the evening if (SDVTime.CurrentTimePeriod == SDVTimePeriods.Afternoon && GenerateEveningFog && !HasSetEveningFog && (!IsFestivalToday && !IsWeddingToday)) { //Get fog instance FerngillFog ourFog = (FerngillFog)this.GetWeatherMatchingType("Fog").First(); if (!ourFog.WeatherInProgress) { ourFog.SetEveningFog(); HasSetEveningFog = true; } } }
public void DrawWeathers() { foreach (ISDVWeather weather in CurrentWeathers) weather.DrawWeather(); //if it's a blood moon out.. if (ClimatesOfFerngill.MoonAPI != null && ClimatesOfFerngill.MoonAPI.GetCurrentMoonPhase() == "Blood Moon") { if (this.GetWeatherMatchingType("Fog").First().IsWeatherVisible) { //Get fog instance FerngillFog ourFog = (FerngillFog)this.GetWeatherMatchingType("Fog").First(); ourFog.BloodMoon = true; } if (this.GetWeatherMatchingType("Blizzard").First().IsWeatherVisible) { //Get Blizzard instance FerngillBlizzard blizzard = (FerngillBlizzard)this.GetWeatherMatchingType("Blizzard").First(); blizzard.IsBloodMoon = true; } } }