projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b3796a2
)
Nope, shake formula dun use integers.
author
Eevee
<git@veekun.com>
Sat, 27 Mar 2010 05:18:19 +0000
(22:18 -0700)
committer
Eevee
<git@veekun.com>
Mon, 29 Mar 2010 05:18:26 +0000
(22:18 -0700)
pokedex/formulae.py
patch
|
blob
|
history
diff --git
a/pokedex/formulae.py
b/pokedex/formulae.py
index
3c70ffa
..
5ee16c4
100644
(file)
--- a/
pokedex/formulae.py
+++ b/
pokedex/formulae.py
@@
-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: