Accuracy: Difference between revisions

m
Text replacement - "Pseudorandom number generation in Pokémon" to "Pseudorandom number generation"
m (→‎In the core series games: Fix stat stage multiplier links)
m (Text replacement - "Pseudorandom number generation in Pokémon" to "Pseudorandom number generation")
Line 28: Line 28:
* ''BrightPowder'' is 20 if the user is [[held item|holding]] [[Bright Powder|BrightPowder]] (only applicable in Generation II), or 0 otherwise.
* ''BrightPowder'' is 20 if the user is [[held item|holding]] [[Bright Powder|BrightPowder]] (only applicable in Generation II), or 0 otherwise.


The random number ''R'' is a [[Pseudorandom number generation in Pokémon|pseudorandomly]] generated integer between 0 and 255 (inclusive). In international {{eng|Pokémon Stadium}} only, if ''R'' is 255, the number is re-generated one-time only; if this re-roll also generates 255, it is not re-rolled again.
The random number ''R'' is a [[Pseudorandom number generation|pseudorandomly]] generated integer between 0 and 255 (inclusive). In international {{eng|Pokémon Stadium}} only, if ''R'' is 255, the number is re-generated one-time only; if this re-roll also generates 255, it is not re-rolled again.


In the Generation I handheld games and Pokémon Stadium, if ''R'' is strictly less than ''Accuracy<sub>modified</sub>'', the move hits, otherwise it misses. In the Generation I handheld games, this results in a bug where, unless the accuracy check is skipped entirely, every move has at least a 1 in 256 chance to miss—this is because if ''R'' is 255, it will always be greater than or equal to ''Accuracy<sub>modified</sub>'' regardless of the value of ''Accuracy<sub>modified</sub>''. In international Pokémon Stadium, because ''R'' is re-rolled once if it would be equal to 255, every move instead has at least a 1 in 65,536 chance (256²) to miss.
In the Generation I handheld games and Pokémon Stadium, if ''R'' is strictly less than ''Accuracy<sub>modified</sub>'', the move hits, otherwise it misses. In the Generation I handheld games, this results in a bug where, unless the accuracy check is skipped entirely, every move has at least a 1 in 256 chance to miss—this is because if ''R'' is 255, it will always be greater than or equal to ''Accuracy<sub>modified</sub>'' regardless of the value of ''Accuracy<sub>modified</sub>''. In international Pokémon Stadium, because ''R'' is re-rolled once if it would be equal to 255, every move instead has at least a 1 in 65,536 chance (256²) to miss.