This calculates the probability that a critical hit will land.
Usage
calculate_critical_chance(move, ..., generation = 1L)
calculate_critical_chance_v1(move, speed, high_crit = 0L)
calculate_critical_chance_v2(move)
Arguments
- move
The name of the move that is being used
- ...
Parameters that will be sent to calculations dependent on the generation
- generation
The generation that the battle is based on
- speed
The base speed of the
Pokemon
that has used the attack- high_crit
Logical: has the
Pokemon
used a move that has increased its critical hit chance?