Undid caching of map_connections.dat as it was already cached

This commit is contained in:
Maruno17
2021-02-26 23:15:54 +00:00
parent b281734312
commit 5963f0fd07
4 changed files with 2 additions and 16 deletions

View File

@@ -9,7 +9,6 @@ class PokemonTemp
attr_accessor :moveToAnim
attr_accessor :battleAnims
attr_accessor :mapInfos
attr_accessor :mapConnections
end
def pbClearData
@@ -21,7 +20,6 @@ def pbClearData
$PokemonTemp.moveToAnim = nil
$PokemonTemp.battleAnims = nil
$PokemonTemp.mapInfos = nil
$PokemonTemp.mapConnections = nil
end
MapFactoryHelper.clear
$PokemonEncounters.setup($game_map.map_id) if $game_map && $PokemonEncounters
@@ -97,17 +95,6 @@ def pbLoadBattleAnimations
return $PokemonTemp.battleAnims
end
#===============================================================================
# Method relating to map connections data.
#===============================================================================
def pbLoadMapConnections
$PokemonTemp = PokemonTemp.new if !$PokemonTemp
if !$PokemonTemp.mapConnections
$PokemonTemp.mapConnections = load_data("Data/map_connections.dat") || []
end
return $PokemonTemp.mapConnections
end
#===============================================================================
# Method relating to map infos data.
#===============================================================================