- 40
- Posts
- 4
- Years
- Seen Jan 13, 2022
I am trying to implement a new Apricorn ball, and this is the code I got.
Does it look right, or did I do something wrong?
Tell me if I got it right or not.
Does it look right, or did I do something wrong?
Tell me if I got it right or not.
Code:
BallHandlers::ModifyCatchRate.add(:GLIMMERBALL,proc { |ball,catchRate,battle,battler,ultraBeast|
catchRate *= 3.5 if battler.isShiny?
next catchRate
})