76 m_Weather.SetStorm(1.0, STORM_THRESHOLD, 20);
78 m_Weather.SetRainThresholds(0.0, 1.0, 60);
79 m_Weather.SetWindMaximumSpeed(20);
80 m_Weather.SetWindFunctionParams(0.1, 1.0, 20);
97 if (m_lastWeather == CLEAR_WEATHER)
99 m_clearWeatherChance -= (m_stepValue * m_sameWeatherCnt);
102 if (m_lastWeather == CLOUDY_WEATHER)
104 m_clearWeatherChance += (m_stepValue * m_sameWeatherCnt);
105 m_badWeatherChance -= (m_stepValue * m_sameWeatherCnt);
108 if (m_lastWeather == BAD_WEATHER)
110 m_clearWeatherChance += m_stepValue;
111 m_badWeatherChance += (m_stepValue * m_sameWeatherCnt);
115 if (m_chance < m_clearWeatherChance)
117 m_choosenWeather = CLEAR_WEATHER;
118 if (m_lastWeather == CLEAR_WEATHER)
121 else if (m_chance > m_badWeatherChance)
123 m_choosenWeather = BAD_WEATHER;
124 if (m_lastWeather == BAD_WEATHER)
129 m_choosenWeather = CLOUDY_WEATHER;
130 if (m_lastWeather == CLOUDY_WEATHER)
134 if (m_choosenWeather != m_lastWeather)
135 m_sameWeatherCnt = 0;
137 m_clearWeatherChance = CLEAR_WEATHER_CHANCE;
138 m_badWeatherChance = BAD_WEATHER_CHANCE;
142 if (m_choosenWeather == CLEAR_WEATHER)
144 m_lastWeather = CLEAR_WEATHER;
151 if (m_choosenWeather == CLOUDY_WEATHER)
153 m_lastWeather = CLOUDY_WEATHER;
160 if (m_choosenWeather == BAD_WEATHER)
162 m_lastWeather = BAD_WEATHER;
172 Debug.
WeatherLog(
string.Format(
"Enoch::Weather::Overcast::Rain:: (%1) %2",
g_Game.GetDayTime(), m_Weather.GetRain().GetActual()));
187 m_Weather.GetRain().Set(0.0, RAIN_TIME_MIN, RAIN_TIME_MAX);
212 else if (m_chance < 60)
218 else if (m_chance < 85)
239 else if (m_chance < 50)
245 else if (m_chance < 90)
284 m_Weather.GetFog().Set(0.1, 1800, 0);
286 m_Weather.GetFog().Set(0.0, 1800, 0);