mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Autosave
This commit is contained in:
@@ -56,6 +56,10 @@ module PokeBattle_BattleCommon
|
||||
pbPlayer.pokedex.set_shadow_pokemon_owned(pkmn.species) if pkmn.shadowPokemon?
|
||||
# Store caught Pokémon
|
||||
pbStorePokemon(pkmn)
|
||||
if $game_switches[AUTOSAVE_CATCH_SWITCH]
|
||||
Kernel.tryAutosave()
|
||||
end
|
||||
|
||||
end
|
||||
@caughtPokemon.clear
|
||||
end
|
||||
|
||||
@@ -417,6 +417,10 @@ class PokeBattle_Battle
|
||||
pbGainMoney if @decision!=4
|
||||
# Hide remaining trainer
|
||||
@scene.pbShowOpponent(@opponent.length) if trainerBattle? && @caughtPokemon.length>0
|
||||
if $game_switches[AUTOSAVE_WIN_SWITCH]
|
||||
Kernel.tryAutosave()
|
||||
end
|
||||
|
||||
##### LOSE, DRAW #####
|
||||
when 2, 5
|
||||
PBDebug.log("")
|
||||
|
||||
Reference in New Issue
Block a user