Jump to content

Fainted lead experience oversight: Difference between revisions

Cause
>Sherkel
(Created page with "{{Japan only}} {{incomplete|Do Revives fix this? What about 3 or more Pokémon sent into battle? Where is the relevant block of code?}} In {{RG}}, if the player enters a train...")
 
>Sherkel
(Cause)
Line 1:
{{Japan only}}
{{incomplete|Do Revives fix this? What about 3 or more Pokémon sent into battle? Where is the relevant block of code?}}
In {{RG}}, 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{{clarify|presumably, if the player switches}} 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 loops through the player's party to see which Pokémon are eligible to gain experience, any that currently have 0 HP are skipped, as intended. However, the list begins at the first entry in the player's party and the counter 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 ==
* Discovered by Exarion.
 
==References==
<references />
 
[[Category:Generation I glitches]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.