Luck manipulation (Generation I): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Bbbbbbbbba
(Added description of RNG and DSum manipulation.)
>Bbbbbbbbba
(→‎Application: Welp, I make a mistake again. Stepping in the grass actually doesn't advance the RNG at all.)
Line 48: Line 48:


The main use of DSum manipulation is to control wild encounters, which depend on both hRandomAdd and hRandomSub:
The main use of DSum manipulation is to control wild encounters, which depend on both hRandomAdd and hRandomSub:
* For each step taken in an area with encounters, the RNG is advanced, and if hRandomAdd is less than the encounter rate, an encounter happens.
* For each step taken in an area with encounters, if the current value of hRandomAdd is less than the encounter rate, an encounter happens.
* When an encounter happens, the species and level of the wild Pokémon depends on hRandomSub (without advancing the RNG again), with each area having ten "encounter slots":
* When an encounter happens, the species and level of the wild Pokémon depends on hRandomSub (without advancing the RNG), with each area having ten "encounter slots":


{|
{|