List of glitches in Generation II: Difference between revisions

m
→‎Strain 0 Pokérus: forgor to remove the incomplete notice
(→‎Strain 0 Pokérus: Behavior of Strain Zero)
m (→‎Strain 0 Pokérus: forgor to remove the incomplete notice)
Line 166: Line 166:


====Strain 0 Pokérus====
====Strain 0 Pokérus====
{{incomplete|section|needs=Behavior of Strain 0}}
{{main|Pokérus#Generation_II|Pokérus → Generation_II}}
{{main|Pokérus#Generation_II|Pokérus → Generation_II}}
[[Pokérus]] strain values of zero can be generated by the Pokérus generation algorithm with probability 15/255. The primary cause is an incorrectly-placed scratch register copy<ref>[https://github.com/pret/pokecrystal/blob/2fe0cbbb19df504723934f39473064033c64ef6f/engine/events/pokerus/pokerus.asm#L54 pret/pokegold: pokerus.asm line 54]</ref> which expresses when the high four bits are zero. In this case, a part of the logic is skipped, and because the bit test cleared the lower four bits and the higher bits are zero, a value of zero is copied to the scratch register, whose low bits become the strain. The day count of one is then derived from this zero as normal.
[[Pokérus]] strain values of zero can be generated by the Pokérus generation algorithm with probability 15/255. The primary cause is an incorrectly-placed scratch register copy<ref>[https://github.com/pret/pokecrystal/blob/2fe0cbbb19df504723934f39473064033c64ef6f/engine/events/pokerus/pokerus.asm#L54 pret/pokegold: pokerus.asm line 54]</ref> which expresses when the high four bits are zero. In this case, a part of the logic is skipped, and because the bit test cleared the lower four bits and the higher bits are zero, a value of zero is copied to the scratch register, whose low bits become the strain. The day count of one is then derived from this zero as normal.
20

edits