Jump to content

Fainted lead experience oversight: Difference between revisions

no edit summary
>Sherkel
(Cause)
old->Torchickens
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1:
{{Japan only}}
{{incomplete|Do Revives fix this? What about 3 or more Pokémon sent into battle? What is its cause?}}
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<!-- Exarion specifically clarified "just half", though not any further. Maybe it's like the Exp. All. -->. 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.
 
== CauseYouTube video ==
{{YouTube|Sy1_Sgbhxu4|ChickasaurusGL}}
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.
{{clr}}
 
==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.