mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Nope, shake formula dun use integers.
This commit is contained in:
parent
b54501ef94
commit
852ab87ba3
1 changed files with 0 additions and 3 deletions
|
@ -74,9 +74,6 @@ def capture_chance(current_hp, max_hp, capture_rate,
|
|||
# shake_index is the number of times the ball will shake. If all four are
|
||||
# <= shake_index, the Pokémon is caught.
|
||||
|
||||
# The RNG tends to work with integers, so integer math likely kicks in now.
|
||||
shake_index = int(shake_index)
|
||||
|
||||
# If shake_index >= 65535, all four randoms must be <= it, and the Pokémon
|
||||
# will be caught. Skip hard math
|
||||
if shake_index >= 65535:
|
||||
|
|
Loading…
Reference in a new issue