Added class GameData::Weather

This commit is contained in:
Maruno17
2021-03-27 19:47:34 +00:00
parent 8975d7a20c
commit b5c8c6ba26
12 changed files with 252 additions and 187 deletions

View File

@@ -138,13 +138,12 @@ class PokemonEncounters
encounter_chance /= 2
min_steps_needed *= 2
when :SNOWCLOAK
if $game_screen.weather_type == PBFieldWeather::Snow ||
$game_screen.weather_type == PBFieldWeather::Blizzard
if GameData::Weather.get($game_screen.weather_type).category == :Hail
encounter_chance /= 2
min_steps_needed *= 2
end
when :SANDVEIL
if $game_screen.weather_type == PBFieldWeather::Sandstorm
if GameData::Weather.get($game_screen.weather_type).category == :Sandstorm
encounter_chance /= 2
min_steps_needed *= 2
end