veekun_pokedex/pokedex
a_magical_me eeac034240 Fix RBY grass/water encounter slot rarities.
<http://tasvideos.org/PokemonTricks.html>
This page explains how the RNG in RBY works, and gives exact rarities.
They are out of 256 rather than 100, so some rounding is necessary to
fit them into the database.

====  =======  ======  ==========  =======
Slot   Range   Chance  Percentage  Rounded
====  =======  ======  ==========  =======
0       0-50   51/256  19.921875%    20%
1      51-101  51/256  19.921875%    20%
2     102-140  39/256  15.234375%    15%
3     141-165  25/256   9.765625%    10%
4     166-190  25/256   9.765625%    10%
5     191-215  25/256   9.765625%    10%
6     216-228  13/256   5.078125%     5%
7     229-241  13/256   5.078125%     5%
8     242-252  11/256   4.296875%     4%
9     253-255   3/256   1.171875%     1%
====  =======  ======  ==========  =======
2010-04-12 23:10:13 -07:00
..
data/csv Fix RBY grass/water encounter slot rarities. 2010-04-12 23:10:13 -07:00
db Add slot index to encounter_slots 2010-04-12 23:06:15 -07:00
tests Fixed lookup tests to, um, run. 2010-03-28 22:18:27 -07:00
__init__.py Totally overhauled lookup to use a class. 2010-03-21 23:27:47 -07:00
formulae.py Remove absolute HP from the capture chance formula. 2010-03-28 22:18:27 -07:00
lookup.py Fixed lookup tests to, um, run. 2010-03-28 22:18:27 -07:00
roomaji.py Forgot to uncomment the hiragana sokuon code. 2009-10-11 00:46:45 -07:00