mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
rain for Feebas
This commit is contained in:
@@ -271,6 +271,18 @@ Events.onMapChanging += proc { |_sender, e|
|
||||
end
|
||||
$game_screen.weather(:None, 0, 0)
|
||||
}
|
||||
Events.onMapChange += proc { |_sender, e|
|
||||
next if !Settings::SEVII_ROAMING.include?($game_map.map_id)
|
||||
new_map_ID = e[0]
|
||||
new_map_metadata = GameData::MapMetadata.try_get(new_map_ID)
|
||||
next if new_map_metadata && new_map_metadata.weather
|
||||
feebas_map = $PokemonGlobal.roamPosition[4]
|
||||
if $game_map.map_id == feebas_map
|
||||
$game_screen.weather(:Rain, 4, 0)
|
||||
else
|
||||
$game_screen.weather(:None, 0, 0)
|
||||
end
|
||||
}
|
||||
|
||||
# Set up various data related to the new map
|
||||
Events.onMapChange += proc { |_sender, e|
|
||||
@@ -293,6 +305,9 @@ Events.onMapChange += proc { |_sender, e|
|
||||
$game_screen.weather(new_weather[0], 9, 0) if rand(100) < new_weather[1]
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Events.onMapSceneChange += proc { |_sender, e|
|
||||
scene = e[0]
|
||||
mapChanged = e[1]
|
||||
|
||||
Reference in New Issue
Block a user