Personality value: Difference between revisions

m
Line 268: Line 268:
A bitwise {{wp|exclusive or}} operation (or "⊕") on inputs ''a'' and ''b'', written as ''a'' ⊕ ''b'' = ''c'', outputs ''c'' such that, if ''a''<sub>i</sub> (bit ''i'' of ''a'') and ''b''<sub>i</sub> are different, then ''c''<sub>i</sub> is 1; otherwise it is 0. For example, 1100<sub>2</sub> ⊕ 1010<sub>2</sub> = 0110<sub>2</sub>. When exclusive or is applied to multiple inputs, as in the calculation for Shininess above, it may be more easily understood as, "If an odd number of bits (at position ''i'') are 1, output 1". This operation is {{wp|Commutative property|commutative}}.
A bitwise {{wp|exclusive or}} operation (or "⊕") on inputs ''a'' and ''b'', written as ''a'' ⊕ ''b'' = ''c'', outputs ''c'' such that, if ''a''<sub>i</sub> (bit ''i'' of ''a'') and ''b''<sub>i</sub> are different, then ''c''<sub>i</sub> is 1; otherwise it is 0. For example, 1100<sub>2</sub> ⊕ 1010<sub>2</sub> = 0110<sub>2</sub>. When exclusive or is applied to multiple inputs, as in the calculation for Shininess above, it may be more easily understood as, "If an odd number of bits (at position ''i'') are 1, output 1". This operation is {{wp|Commutative property|commutative}}.


From [[Generation III]] to {{gen|V}}, if ''S'' < 8, the Pokémon is Shiny. From [[Generation VI]] onward, the Pokémon is Shiny if ''S'' < 16. This is an 8 or 16 in 65536 chance of a Pokémon being Shiny. In [[Generation VIII]], if ''S'' = 0, the Pokémon will have square sparkles rather than star sparkles during the particle effect shown for Shiny Pokémon. (If the Pokémon is Shiny, and was either a [[fateful encounter]] or transferred from [[Pokémon GO]], the value of ''S'' is ignored when determining sparkle type, and the Pokémon will have square sparkles regardless.)
From [[Generation III]] to {{gen|V}}, if ''S'' < 8, the Pokémon is Shiny. From [[Generation VI]] onward, the Pokémon is Shiny if ''S'' < 16. This is an 8 or 16 in 65536 chance of a Pokémon being Shiny. In [[Generation VIII]], if ''S'' = 0, the Pokémon will have square sparkles rather than star sparkles during the particle effect shown for Shiny Pokémon. (If the Pokémon is Shiny, and is either a [[fateful encounter]] or transferred from [[Pokémon GO]], the value of ''S'' is ignored when determining sparkle type, and the Pokémon will have square sparkles regardless.)


====Example====
====Example====
1,611

edits