Added setting that determines if Pokémon put into storage are healed

This commit is contained in:
Maruno17
2021-06-21 23:28:51 +01:00
parent 43900dca8c
commit 9344ef8d04
5 changed files with 47 additions and 26 deletions

View File

@@ -191,7 +191,7 @@ class PokemonStorage
raise "Trying to copy nil to storage" if !pkmn
pkmn.time_form_set = nil
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
pkmn.heal
pkmn.heal if Settings::HEAL_STORED_POKEMON
self[boxDst,indexDst] = pkmn
end
return true
@@ -214,7 +214,7 @@ class PokemonStorage
if box>=0
pkmn.time_form_set = nil if pkmn.time_form_set
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
pkmn.heal
pkmn.heal if Settings::HEAL_STORED_POKEMON
end
self[box,i] = pkmn
return true
@@ -227,7 +227,7 @@ class PokemonStorage
if @currentBox>=0
pkmn.time_form_set = nil
pkmn.form = 0 if pkmn.isSpecies?(:SHAYMIN)
pkmn.heal
pkmn.heal if Settings::HEAL_STORED_POKEMON
end
for i in 0...maxPokemon(@currentBox)
if self[@currentBox,i]==nil