More bugfixes (and one Gen 8 addition) (#155)

* Added comment indicating unused method pbRefreshSceneMap
* Removed superfluous ending of Beak Blast's effect
* Fixed crash when playing an animation in the animation player
* Added SwSh Terrain effects
This commit is contained in:
Golisopod-User
2022-01-12 03:06:01 +05:30
committed by GitHub
parent 767a47d90f
commit ff465a78a6
6 changed files with 18 additions and 12 deletions

View File

@@ -109,11 +109,20 @@ def pbPrepareBattle(battle)
battle.showAnims = ($PokemonSystem.battlescene == 0)
battle.showAnims = battleRules["battleAnims"] if !battleRules["battleAnims"].nil?
# Terrain
battle.defaultTerrain = battleRules["defaultTerrain"] if !battleRules["defaultTerrain"].nil?
if battleRules["defaultTerrain"].nil? && Settings::OVERWORLD_WEATHERS_SET_TERRAINS
case $game_screen.weather_type
when :Storm
battle.defaultTerrain = :Electric
when :Fog
battle.defaultTerrain = :Misty
end
else
battle.defaultTerrain = battleRules["defaultTerrain"]
end
# Weather
if battleRules["defaultWeather"].nil?
case GameData::Weather.get($game_screen.weather_type).category
when :Rain
when :Rain, :Storm
battle.defaultWeather = :Rain
when :Hail
battle.defaultWeather = :Hail