6.0 release

This commit is contained in:
infinitefusion
2023-11-12 15:37:12 -05:00
parent 63d56d7c32
commit 57165b6cbf
4886 changed files with 28402 additions and 9715 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