Commit graph

7 commits

Author SHA1 Message Date
Eevee
acb156d28d Give calculated_stat and calculated_hp the same signature. 2011-03-10 22:12:03 -08:00
Eevee
78bff787f6 Fixed the hell out of the capture rate formula. #150
- Wobbles are based on WHICH number is greater than some pivot, not how
  many.  This was making everything totally wrong, especially 0 wobbles.

- HG/SS balls all modify capture rate, rather than ball bonus.

- Everything really is integer math; even the sqrts.  Bonuses are
  relative to 10, not 1.  HP is now treated as integer math, too.

- Implemented a minor game bug with very hard to catch Pokémon.
2010-04-17 02:16:42 -07:00
Eevee
d995942b4f Remove absolute HP from the capture chance formula. 2010-03-28 22:18:27 -07:00
Eevee
852ab87ba3 Nope, shake formula dun use integers. 2010-03-28 22:18:26 -07:00
Eevee
597ee5198b Added capture chance formula. 2010-03-21 03:16:24 -07:00
Eevee
afa6c061b6 Added a function for the EXP formula. 2009-03-27 19:49:20 -04:00
Eevee
15eae9ed6c Added Python versions of stat formulae. 2009-03-22 22:07:31 -04:00