Friendship underflow: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
>Map233224
(Allows you to quickly raise the Friendship of any Pokémon.)
 
>ISSOtm
(Re-formatted the page)
Line 1: Line 1:
'''Friendship Underflow''' is a bug present in {{DP}}, which allows raising the Friendship of any Pokémon quickly.
This glitch only works in Pokémon Diamond and Pearl


=== Procedure and Explanation ===
It allows you to quickly '''raise the Friendship of any Pokémon'''.
Consequently, you can rapidly evolve Pokémon such as Buneary that require a Friendship value greater than or equal to 220 to evolve.


Usually, items like Energy Powder and Energy Root decrease the Friendship value by 5 and 10 respectively (10 and 15 if Friendship is between 200 and 255).
Using some items, such as Energy Powder and Energy Root, decreases the target's Friendship (by 5 and 10 respectively, or by 10 and 15 instead if the original Friendship was higher than 200).
If you decrease the Friendship value by more than 2 below 0 during a fight, the value will become negative.
But the value being coded as a 16 bit unsigned integer, it will simply overflow to a great positive value.


The game normally prevents Friendship from becoming negative, however this check fails when decreasing the value by more than 2 below 0 during a fight. Since Friendship is stored as an 8-bit unsigned integer, negative values "roll over" to large positive values, close the the maximum of 255.
As stated above, this is quite useful if you want to evolve Buneary quickly, because its base Friendship value is 0 :


=== Application ===
Buy 1 Energy Powder in Eterna City
• Catch a Buneary in Eterna Forest
• Lose some HP and use the Energy Powder in a battle
Run away


Some Pokémon whose evolution requires a high (220+) Friendship, such as Buneary, can be quickly evolved this way. It also strongly overpowers the move Return, whose base Power is equal to the user's Friendship divided by 2.5.
The Friendship value of Buneary is now 251, just level it up once and it will evolve into Lopunny.
You can also teach it Return at level 13 to hit pretty hard, since Return's base Power is equal to Friendship divived by 2.5.


Here is the general procedure:
If the Pokémon you want to evolve isn't Buneary, refer to the base Friendship of the Pokémon you want to evolve, and use as many items as needed to make the value negative. Example : Riolu has a base Friendship value of 70, meaning that you will need to use 8 Energy Root during the fight.
# Stock up on Energy Powder and/or Energy Roots in Eterna City
# Catch the Pokémon you wish to boost the Friendship of. Already-caught Pokémon also work, but you will need to know or guess its Friendship. The base Friendship of several species is listed below.
# Lower the Friendship until it's close enough to 0 that using a single of these items will bring the Friendship below -2
# Lose some HP
# Reduce the Friendship '''in a battle'''
# Run away


Base 0 : Buneary
* Base 0: Buneary
Base 70 : Golbat, Eevee, Pichu, Igglybuff, Togepi, Azurill, Budew, Chingling, Munchlax and Riolu
* Base 70: Golbat, Eevee, Pichu, Igglybuff, Togepi, Azurill, Budew, Chingling, Munchlax and Riolu
Base 140 : Chansey and Cleffa
* Base 140: Chansey and Cleffa

To find the actual Friendship you obtained, add 256 to the negative amount. So, for example, using 1 (one) Energy Powder on a freshly-caught Buneary will yield 0 (base) - 5 (Energy Powder) + 256 (bug) = 251 Friendship. Since that's higher than 220, leveling the Pokémon up will evolve it into Lopunny.

Buneary is ideal for this bug, given its low base Friendship. For Riolu's base of 70, you can use 8 Energy Roots (70 - 7 * 10 = -10), for example.

[[Category:Generation IV glitches]]

Revision as of 15:02, 8 May 2020

Friendship Underflow is a bug present in Pokémon Diamond and Pearl, which allows raising the Friendship of any Pokémon quickly.

Procedure and Explanation

Using some items, such as Energy Powder and Energy Root, decreases the target's Friendship (by 5 and 10 respectively, or by 10 and 15 instead if the original Friendship was higher than 200).

The game normally prevents Friendship from becoming negative, however this check fails when decreasing the value by more than 2 below 0 during a fight. Since Friendship is stored as an 8-bit unsigned integer, negative values "roll over" to large positive values, close the the maximum of 255.

Application

Some Pokémon whose evolution requires a high (220+) Friendship, such as Buneary, can be quickly evolved this way. It also strongly overpowers the move Return, whose base Power is equal to the user's Friendship divided by 2.5.

Here is the general procedure:

  1. Stock up on Energy Powder and/or Energy Roots in Eterna City
  2. Catch the Pokémon you wish to boost the Friendship of. Already-caught Pokémon also work, but you will need to know or guess its Friendship. The base Friendship of several species is listed below.
  3. Lower the Friendship until it's close enough to 0 that using a single of these items will bring the Friendship below -2
  4. Lose some HP
  5. Reduce the Friendship in a battle
  6. Run away
  • Base 0: Buneary
  • Base 70: Golbat, Eevee, Pichu, Igglybuff, Togepi, Azurill, Budew, Chingling, Munchlax and Riolu
  • Base 140: Chansey and Cleffa

To find the actual Friendship you obtained, add 256 to the negative amount. So, for example, using 1 (one) Energy Powder on a freshly-caught Buneary will yield 0 (base) - 5 (Energy Powder) + 256 (bug) = 251 Friendship. Since that's higher than 220, leveling the Pokémon up will evolve it into Lopunny.

Buneary is ideal for this bug, given its low base Friendship. For Riolu's base of 70, you can use 8 Energy Roots (70 - 7 * 10 = -10), for example.