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

@@ -1722,7 +1722,7 @@ class PokemonStorageScreen
p = (heldpoke) ? heldpoke : @storage[-1,index]
p.time_form_set = nil
p.form = 0 if p.isSpecies?(:SHAYMIN)
p.heal
p.heal if Settings::HEAL_STORED_POKEMON
end
@scene.pbStore(selected,heldpoke,destbox,firstfree)
if heldpoke
@@ -1769,7 +1769,7 @@ class PokemonStorageScreen
if box>=0
@heldpkmn.time_form_set = nil
@heldpkmn.form = 0 if @heldpkmn.isSpecies?(:SHAYMIN)
@heldpkmn.heal
@heldpkmn.heal if Settings::HEAL_STORED_POKEMON
end
@scene.pbPlace(selected,@heldpkmn)
@storage[box,index] = @heldpkmn
@@ -1798,7 +1798,7 @@ class PokemonStorageScreen
if box>=0
@heldpkmn.time_form_set = nil
@heldpkmn.form = 0 if @heldpkmn.isSpecies?(:SHAYMIN)
@heldpkmn.heal
@heldpkmn.heal if Settings::HEAL_STORED_POKEMON
end
@scene.pbSwap(selected,@heldpkmn)
tmp = @storage[box,index]