Fixes step autosave saving multiple times on same step

This commit is contained in:
infinitefusion
2022-06-07 20:05:57 -04:00
parent 89607cd930
commit 9a215a0947
17 changed files with 3 additions and 31 deletions

View File

@@ -18,7 +18,9 @@ def pbSetPokemonCenter
end
def Kernel.Autosave
#showSaveIcon()
pbSave(false)
#hideSaveIcon()
end
@@ -32,6 +34,7 @@ if AUTOSAVE_STEPS_SWITCH
if stepsNum > 0 && !$PokemonGlobal.sliding
return if $PokemonGlobal.stepcount < 100
if $PokemonGlobal.stepcount % stepsNum == 0
$PokemonGlobal.stepcount+=1
Kernel.tryAutosave()
end
end