Critical hit: Difference between revisions

m (Bot: Adding it:Brutto colpo)
Line 9: Line 9:


===Probability===
===Probability===
Whether a move scores a critical hit is determined by comparing a 1-byte random number (0 to 255) against a 1-byte threshold value (also 0 to 255); if the random number is less than the threshold, the Pokémon scores a critical hit. If the threshold value is ''T'', then this means the probability (''P'') of scoring a critical hit is <code>''P'' = ''T'' / 256</code>. (Note that this means it is impossible for a critical hit to be guaranteed; there will always be a 1/256 chance that a critical hit will not be scored.)
Whether a move scores a critical hit is determined by comparing a 1-byte random number (0 to 255) against a 1-byte threshold value (also 0 to 255); if the random number is less than the threshold, the Pokémon scores a critical hit. If the threshold value is ''T'', then this means the probability (''P'') of scoring a critical hit is <code>''P'' = ''T'' / 256</code>. (It is impossible for a critical hit to be guaranteed; there will always be at least a 1/256 chance that a critical hit will not be scored.)


The value of ''T'' is based on a Pokémon's [[base stats|base]] {{stat|Speed}}. For a normal move, ''T'' is half the base Speed:
The value of ''T'' is based on a Pokémon's [[base stats|base]] {{stat|Speed}}. For a normal move, ''T'' is half the base Speed:
494

edits