Catch rate: Difference between revisions

→‎Shake chance: starter to first partner
(→‎Shake chance: starter to first partner)
Line 501: Line 501:
<math> b = 65535 \times \left(1 - \sqrt{1-\frac{a}{255}} \right)</math>
<math> b = 65535 \times \left(1 - \sqrt{1-\frac{a}{255}} \right)</math>


The game makes two shake checks, checking ''b'' against a random number between 0 and 65535. If the first check is passed, then the ball will make a low bounce and capture the Pokémon. If the second check is passed, then the ball will make a high bounce and capture the Pokémon. If both checks fail, then the ball will make a high bounce but the Pokémon will escape. If ''a'' is less than zero, then capture is impossible and the Pokémon will escape without a bounce. The third starter Pokémon is coded to always fail capture on the first attempt.
The game makes two shake checks, checking ''b'' against a random number between 0 and 65535. If the first check is passed, then the ball will make a low bounce and capture the Pokémon. If the second check is passed, then the ball will make a high bounce and capture the Pokémon. If both checks fail, then the ball will make a high bounce but the Pokémon will escape. If ''a'' is less than zero, then capture is impossible and the Pokémon will escape without a bounce. The third first partner Pokémon is coded to always fail capture on the first attempt.


The game also provides a visual indicator of a player's chance to capture a Pokémon if in the overworld:
The game also provides a visual indicator of a player's chance to capture a Pokémon if in the overworld:
1,598

edits