Pokérus: Difference between revisions

162 bytes added ,  19 July 2013
→‎Technical information: I don't see the point in initially separating the byte into nibbles, and then explaining something is dependent on the 2nd nibble being nonzero by taking modulo 16 of the whole byte
(Confirmed this tonight. I now have an unborn Rotom with Pokérus.)
(→‎Technical information: I don't see the point in initially separating the byte into nibbles, and then explaining something is dependent on the 2nd nibble being nonzero by taking modulo 16 of the whole byte)
Line 32: Line 32:
This means that there exist 256 possible states of Pokérus: 1 unaffected state, 240 infected states (39 legitimate and 201 hacked), 15 cured states:
This means that there exist 256 possible states of Pokérus: 1 unaffected state, 240 infected states (39 legitimate and 201 hacked), 15 cured states:
* An unaffected state is always represented as 0 (hex 00).
* An unaffected state is always represented as 0 (hex 00).
* An infected state is represented by any number between 1 and 255 that has a remainder when divided by 16.
* An infected state is represented by any number between 1 and 255 that has a remainder when divided by 16. In other words, when the lower nibble '''Y''' is nonzero, the Pokémon is infected.
** For example, 33 (hex 21) represents an infected state, since 33 divided by 16 would produce 1 as a remainder.
** For example, 33 (hex 21) represents an infected state, since 33 divided by 16 would produce 1 as a remainder.
* A cured state is represented by any number between 1 and 255 that does not have a remainder when divided by 16.
* A cured state is represented by any number between 1 and 255 that does not have a remainder when divided by 16. In other words, when the lower nibble '''Y''' is zero, the Pokémon is cured.
** Possible 'cured' values can be 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224 or 240 (hex values 10, 20, 30, 40, 50, 60, 70, 80, 90, A0, B0, C0, D0, E0 or F0 respectively).
** Possible 'cured' values can be 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224 or 240 (hex values 10, 20, 30, 40, 50, 60, 70, 80, 90, A0, B0, C0, D0, E0 or F0 respectively).