Mt. silver, Rock Climb - startup performance

This commit is contained in:
infinitefusion
2022-11-26 15:11:57 -05:00
parent 215e6a2462
commit 75569daf27
94 changed files with 775 additions and 3143 deletions

View File

@@ -35,7 +35,7 @@ Events.onMapUpdate += proc { |sender, e|
next if !$game_switches[AUTOSAVE_STEPS_SWITCH]
stepsNum = pbGet(AUTOSAVE_STEPS_VAR)
if stepsNum > 0 && !$PokemonGlobal.sliding
return if $PokemonGlobal.stepcount < 100
next if $PokemonGlobal.stepcount < 100
if $PokemonGlobal.stepcount % stepsNum == 0
$PokemonGlobal.stepcount += 1
Kernel.tryAutosave()