Added ESSENTIALS_VERSION to the save file (with backwards compatibility)

This commit is contained in:
m3rein
2020-09-05 13:38:34 +02:00
parent 9aebe1e4d2
commit d57e1dd0c1
2 changed files with 10 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ def pbSave(safesave=false)
Marshal.dump($PokemonMap,f)
Marshal.dump($PokemonBag,f)
Marshal.dump($PokemonStorage,f)
Marshal.dump(ESSENTIALS_VERSION,f)
}
Graphics.frame_reset
rescue
@@ -153,4 +154,4 @@ def pbSaveScreen
screen = PokemonSaveScreen.new(scene)
ret = screen.pbSaveScreen
return ret
end
end