Fainted lead experience oversight: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
>Sherkel
m (Style style style)
>Sherkel
m (Style style style)
Line 4: Line 4:


== Cause ==
== Cause ==
In the function that iterates through the player's party to determine which Pokémon are eligible to gain experience, any that currently have 0 HP are skipped as intended. However, the counter is initiated at the first entry in the player's party, and is first incremented ''before'' that Pokémon is checked, thus effectively starting the function at the player's second Pokémon.<ref>[https://github.com/luckytyphlosion/pokered-jp/blob/master/engine/battle/experience.asm Red and Green's experience formula]</ref>
In the function that iterates through the player's party to determine which Pokémon are eligible to gain experience, any that currently have 0 HP are skipped as intended. However, the counter is initiated at the first entry in the player's party, and is first incremented ''before'' that Pokémon is checked, thus effectively starting the function at the player's second Pokémon.<ref>[https://github.com/Luckytyphlosion/pokered-jp/blob/master/engine/battle/experience.asm Red and Green's experience formula]</ref>


== Attribution ==
== Attribution ==

Revision as of 08:42, 28 October 2019

Please note that this glitch only exists in the Japanese versions of the game, or is otherwise a glitch
from a Pokémon game which was only released in Japan.
This article is incomplete. Please feel free to add any missing information about the subject. It is missing: Do Revives fix this? What about 3 or more Pokémon sent into battle?.

In Pokémon Red and Green, if the player enters a trainer battle with a lead Pokémon that is fainted, the opposing trainer's lead Pokémon will only give half or less[clarification needed] of the experience points it is intended to. Despite fainted Pokémon being unable to receive experience points, the first Pokémon in the player's party will still factor into the calculation when dividing experience among battle participants.

Cause

In the function that iterates through the player's party to determine which Pokémon are eligible to gain experience, any that currently have 0 HP are skipped as intended. However, the counter is initiated at the first entry in the player's party, and is first incremented before that Pokémon is checked, thus effectively starting the function at the player's second Pokémon.[1]

Attribution

  • Discovered by Exarion.

References