Skip to contents

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?

Details

Generation 1 does include the mechanics within the original games. For example, the chance for a critical hit from standard moves reduces after a move like swords dance has been used.

See also

https://bulbapedia.bulbagarden.net/wiki/Critical_hit