mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
More migration
This commit is contained in:
@@ -13,11 +13,8 @@ module Game
|
||||
end
|
||||
|
||||
def onLoadSaveFile
|
||||
# Essentials 21 renamed the global variable $Trainer
|
||||
# It's still used everywhere in events, global events so this makes things simpler
|
||||
$Trainer = $player
|
||||
$PokemonBag = $bag
|
||||
|
||||
initializeGlobalVariables
|
||||
copyOldGlobalVariables()
|
||||
migrateOldSavesToCharacterCustomization()
|
||||
clear_all_images()
|
||||
loadDateSpecificChanges()
|
||||
@@ -26,6 +23,19 @@ module Game
|
||||
end
|
||||
|
||||
|
||||
def initializeGlobalVariables()
|
||||
$CanToggle = true #$PokemonSystem.only_speedup_battles == 0
|
||||
end
|
||||
|
||||
|
||||
# Essentials 21 renamed the global variable $Trainer
|
||||
# It's still used everywhere in events, global events
|
||||
# so this is a little hack to prevent all the old stuff
|
||||
# from breaking
|
||||
def copyOldGlobalVariables()
|
||||
$Trainer = $player
|
||||
$PokemonBag = $bag
|
||||
end
|
||||
|
||||
def loadDateSpecificChanges()
|
||||
current_date = Time.new
|
||||
|
||||
Reference in New Issue
Block a user