battle bg

This commit is contained in:
infinitefusion
2021-07-31 16:21:22 -04:00
parent dc7df58c17
commit 4354cc778a
1136 changed files with 109 additions and 157914 deletions

View File

@@ -140,7 +140,13 @@ def pbPrepareBattle(battle)
back = GameData::MapMetadata.get($game_map.map_id).battle_background
backdrop = back if back && back != ""
end
backdrop = "indoor1" if !backdrop
if !backdrop
isOutdoor = GameData::MapMetadata.get($game_map.map_id).outdoor_map rescue false
backdrop = "indoorA" if !isOutdoor
backdrop = "Field" if isOutdoor
end
backdrop = "indoorA" if !backdrop
battle.backdrop = backdrop
# Choose a name for bases depending on environment
if battleRules["base"].nil?