update to latest 6.0 release

This commit is contained in:
infinitefusion
2023-11-12 21:45:07 -05:00
parent ba7ee9bae2
commit d3662c3f10
4980 changed files with 21185 additions and 317635 deletions

View File

@@ -479,6 +479,7 @@ end
#===============================================================================
class PokemonTemp
attr_accessor :heart_gauges
attr_accessor :during_battle
end
@@ -486,6 +487,7 @@ end
# Record current heart gauges of Pokémon in party, to see if they drop to zero
# during battle and need to say they're ready to be purified afterwards
Events.onStartBattle += proc { |_sender|
$PokemonTemp.during_battle=true
$PokemonTemp.heart_gauges = []
$Trainer.party.each_with_index do |pkmn, i|
$PokemonTemp.heart_gauges[i] = pkmn.heart_gauge
@@ -493,6 +495,7 @@ Events.onStartBattle += proc { |_sender|
}
Events.onEndBattle += proc { |_sender,_e|
$PokemonTemp.during_battle=false
$PokemonTemp.heart_gauges.each_with_index do |value, i|
pkmn = $Trainer.party[i]
next if !pkmn || !value || value == 0