30,387
edits
Tiddlywinks (talk | contribs) m (Naked speculation/head canon. Also, I really don't think we need an incredibly specific journal reference; anyone really interested/dubious can search Google for any number of examples) |
Tiddlywinks (talk | contribs) (→In Generation V: From Kaphotics' source in edit summary: http://pastebin.com/UNq9MPke . Some wording/specifics/apparent interpretation mistakes) |
||
Line 87: | Line 87: | ||
The mechanics remain more or less the same, sharing similarity to the strain phenomenon in [[Generation II]]. However, a difference would be that the icon that would appear if a Pokémon has previously had Pokérus would be a pinkish color instead of the former yellow/orange color. | The mechanics remain more or less the same, sharing similarity to the strain phenomenon in [[Generation II]]. However, a difference would be that the icon that would appear if a Pokémon has previously had Pokérus would be a pinkish color instead of the former yellow/orange color. | ||
To determine if any Pokémon in the player's party is to be infected, the game calls the {{wp|Mersenne twister}} table | To determine if any Pokémon in the player's party is to be infected, the game calls the {{wp|Mersenne twister}} table to get a 32-bit random number, discards the lowest 16 bits, and then discards the highest two bits (a bitwise ''and'' with 0x3FFF). If this number is 0, the game will choose a Pokémon in the party to be infected. | ||
To determine what party member is to be infected, the game takes another value from the Mersenne Twister table, multiplies it by the party count, then discards the lowest 32 bits of the result. If this number is an Egg, the calculation is repeated. Otherwise, if that party member has already been infected, nothing else will happen. | |||
If a Pokémon will be infected, the game takes the next value from the Mersenne Twister table and discards the lowest 24 bits (if the lowest three bits of this result are all 0, another number is chosen). If any of the highest four bits are nonzero, the highest five bits are discarded. The resulting number will be '''X''', the Pokérus strain; the duration of the virus will be set to '''X''' modulo 4 + 1. (The duration for any strain is the same as in the table in the Generation II section.) | |||
These calculations mean that the strains 0 and 8 will never occur, and that the remaining strains are biased towards the lower numbers (with 1 through 7 being much more common than 9 through 15). | |||
====Nurse's comments==== | ====Nurse's comments==== |