Merge remote-tracking branch 'origin/e19-release-beta' into e19-release-beta

This commit is contained in:
chardub
2023-01-02 21:19:06 -05:00

View File

@@ -60,11 +60,11 @@ BallHandlers::ModifyCatchRate.add(:PERFECTBALL,proc{|ball,catchRate,battle,pokem
next catchRate next catchRate
}) })
BallHandlers::OnCatch.add(:PERFECTBALL,proc{|ball,battle,pokemon| BallHandlers::OnCatch.add(:PERFECTBALL,proc{|ball,battle,pokemon|
stat1 = rand(5) stats = [:ATTACK, :SPECIAL_ATTACK, :SPECIAL_DEFENSE, :SPEED, :DEFENSE, :HP]
stat2 = rand(5) first = rand(5)
pokemon.iv[stat1]=31 second = rand(5)
pokemon.iv[stat2]=31 pokemon.iv[stats[first]] = 31
pokemon.iv[stats[second]] = 31
}) })