mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Moved global/map metadata constants and schema into modules
This commit is contained in:
@@ -130,7 +130,7 @@ def pbPrepareBattle(battle)
|
||||
elsif $PokemonGlobal.surfing
|
||||
backdrop = "water" # This applies wherever you are, including in caves
|
||||
else
|
||||
back = pbGetMetadata($game_map.map_id,MetadataBattleBack)
|
||||
back = pbGetMetadata($game_map.map_id,MapMetadata::BATTLE_BACK)
|
||||
backdrop = back if back && back!=""
|
||||
end
|
||||
backdrop = "indoor1" if !backdrop
|
||||
@@ -151,7 +151,7 @@ def pbPrepareBattle(battle)
|
||||
end
|
||||
battle.backdropBase = base if base
|
||||
# Time of day
|
||||
if pbGetMetadata($game_map.map_id,MetadataEnvironment)==PBEnvironment::Cave
|
||||
if pbGetMetadata($game_map.map_id,MapMetadata::ENVIRONMENT)==PBEnvironment::Cave
|
||||
battle.time = 2 # This makes Dusk Balls work properly in caves
|
||||
elsif TIME_SHADING
|
||||
timeNow = pbGetTimeNow
|
||||
@@ -165,7 +165,7 @@ end
|
||||
# Used to determine the environment in battle, and also the form of Burmy/
|
||||
# Wormadam.
|
||||
def pbGetEnvironment
|
||||
ret = pbGetMetadata($game_map.map_id,MetadataEnvironment)
|
||||
ret = pbGetMetadata($game_map.map_id,MapMetadata::ENVIRONMENT)
|
||||
ret = PBEnvironment::None if !ret
|
||||
if $PokemonTemp.encounterType==EncounterTypes::OldRod ||
|
||||
$PokemonTemp.encounterType==EncounterTypes::GoodRod ||
|
||||
|
||||
Reference in New Issue
Block a user