mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
6.0 release
This commit is contained in:
@@ -174,11 +174,13 @@ def pbPrepareBattle(battle)
|
||||
back = getBattleBackgroundFromMetadata(GameData::MapMetadata.get($game_map.map_id))
|
||||
backdrop = back if back && back != ""
|
||||
end
|
||||
|
||||
if !backdrop
|
||||
isOutdoor = GameData::MapMetadata.get($game_map.map_id).outdoor_map rescue false
|
||||
backdrop = "indoorA" if !isOutdoor
|
||||
backdrop = "Field" if isOutdoor
|
||||
end
|
||||
|
||||
battle.backdrop = backdrop
|
||||
# Choose a name for bases depending on environment
|
||||
if battleRules["base"].nil?
|
||||
|
||||
@@ -39,3 +39,12 @@ Events.onWildPokemonCreate += proc { |_sender, e|
|
||||
# YOUR CODE HERE
|
||||
# end
|
||||
#}
|
||||
|
||||
|
||||
#NECROZMA BATTLE
|
||||
Events.onWildPokemonCreate += proc { |_sender, e|
|
||||
pokemon = e[0]
|
||||
if $game_switches[SWITCH_KANTO_DARKNESS_STAGE_4] && pokemon.species == :NECROZMA
|
||||
pokemon.item = :NECROZIUM
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user