Fainted lead experience oversight: Difference between revisions

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 ==