Main Menu

Glitches

References/Resources

Affiliates

Technical

Search Wiki

Toolbox

Difference between revisions of "Fainted lead experience oversight"
 Page | Discussion | View source | History

From Glitch City Laboratories

Jump to: navigation, search
[checked revision][checked revision]
(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...")
 
(Cause)
Line 1: Line 1:
 
{{Japan only}}
 
{{Japan only}}
{{incomplete|Do Revives fix this? What about 3 or more Pokémon sent into battle? Where is the relevant block of code?}}
+
{{incomplete|Do Revives fix this? What about 3 or more Pokémon sent into battle?}}
 
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.
 
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 ==
 
== Attribution ==
 
* Discovered by Exarion.
 
* Discovered by Exarion.
 +
 +
==References==
 +
<references />
 +
 
[[Category:Generation I glitches]]
 
[[Category:Generation I glitches]]

Revision as of 02:38, 28 October 2019

Please note that this glitch only exists in the Japanese versions of the game, or is otherwise a glitch
Japan.gif
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 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.[1]

Attribution

  • Discovered by Exarion.

References