Jump to content

Experience underflow glitch: Difference between revisions

no edit summary
>Torchickens
(Created page with "{{Researchneeded|Check underflow techniques for other experience groups, including glitch experience groups}} The '''experience underflow glitch''' refers to a 'glitch' in {{R...")
 
>Torchickens
No edit summary
Line 1:
{{Researchneeded|Check underflow techniques for other experience groups, including glitch experience groups}}
[[File:Level 1 Mew Y.png|frame|right|A level 1 Mew with 'negative' experience (16777162) or -54.]]
The '''experience underflow glitch''' refers to a 'glitch' in {{RBY}} and {{GSC}} where the result of the calculation of a Pokémon's experience was a negative number.
 
Line 8 ⟶ 9:
 
The experience calculation for this experience type is as such:<br>[[File:03_Medium-Slow.png]]
, '''i.e. 1.2L<sup>3</sup> - 15L<sup>2</sup> + 100L - 140'''
 
For level 0 and level 1 Pokémon the result is a negative number; i.e. -140 for level 0 and -53.8 for level 1 (which is rounded to -54).
Line 14 ⟶ 15:
However, this is interpreted by the game as an extremely high negative number (16777076 at level 0 and 16777162 at level 1), and the maximum experience is 16777215 (FF FF FF) before the total experience 'wraps around' back to 0.
 
This means that if a level 0 Pokémon gains less than 140 experience or if a level 1 Pokémon gains less than 54 experience it will jump to level 100 if it is stable. If it gains more than the relevant amount it the experience will be a positive number so the Pokémon will jump to a normal level.
 
Despite the experience being for an extremely high level, level 100 is the cap. However, note that the level cap may vary for [[unstable hybrid]] Pokémon, for example the cap for a Mew/Chansey hybrid with Chansey as the recipient is level 109.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.