mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Merge remote-tracking branch 'origin/e19-release-beta' into e19-release-beta
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user