Fix RBY grass/water encounter slot rarities.
authora_magical_me <andrew@turnipmints.mooo.com>
Thu, 18 Mar 2010 04:31:07 +0000 (21:31 -0700)
committera_magical_me <andrew@turnipmints.mooo.com>
Tue, 13 Apr 2010 06:10:13 +0000 (23:10 -0700)
<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%
====  =======  ======  ==========  =======

pokedex/data/csv/encounter_slots.csv

index 72ab34f..ea3fa62 100644 (file)
@@ -65,8 +65,8 @@ id,version_group_id,encounter_terrain_id,slot,rarity
 64,9,5,5,1
 65,9,6,1,90
 66,9,6,2,10
-67,1,1,1,25
-68,1,1,2,15
+67,1,1,1,20
+68,1,1,2,20
 69,1,1,3,15
 70,1,1,4,10
 71,1,1,5,10
@@ -75,8 +75,8 @@ id,version_group_id,encounter_terrain_id,slot,rarity
 74,1,1,8,5
 75,1,1,9,4
 76,1,1,10,1
-77,1,5,1,25
-78,1,5,2,15
+77,1,5,1,20
+78,1,5,2,20
 79,1,5,3,15
 80,1,5,4,10
 81,1,5,5,10
@@ -85,8 +85,8 @@ id,version_group_id,encounter_terrain_id,slot,rarity
 84,1,5,8,5
 85,1,5,9,4
 86,1,5,10,1
-87,2,1,1,25
-88,2,1,2,15
+87,2,1,1,20
+88,2,1,2,20
 89,2,1,3,15
 90,2,1,4,10
 91,2,1,5,10
@@ -95,8 +95,8 @@ id,version_group_id,encounter_terrain_id,slot,rarity
 94,2,1,8,5
 95,2,1,9,4
 96,2,1,10,1
-97,2,5,1,25
-98,2,5,2,15
+97,2,5,1,20
+98,2,5,2,20
 99,2,5,3,15
 100,2,5,4,10
 101,2,5,5,10