Experience: Difference between revisions

169 bytes added ,  9 September 2022
→‎Gain formula: That technically isn't how that works; after the integer division by 7 or 5, it does an integer division by whatever the scaling factor is (except, to my understanding, in Gen 6 where the Trainer battle multiplier is applied first, so clarifying that too)
(→‎Gain formula: I... I completely forgot about the Exp. Charm. Gotta do some tests I guess, or maybe have someone else figure it out...)
(→‎Gain formula: That technically isn't how that works; after the integer division by 7 or 5, it does an integer division by whatever the scaling factor is (except, to my understanding, in Gen 6 where the Trainer battle multiplier is applied first, so clarifying that too))
Line 1,545: Line 1,545:
In the main Pokémon games, only two basic formulas have ever been used: a flat formula, where the winner's level is not taken into account, and a scaled formula, where the difference between both opponents' levels affects the amount of experience the winner receives. [[Generation V]], {{gen|VII}}, and {{gen|VIII}} games use the scaled formula. All other generations use the flat formula, although each generation generally makes its own additions or tweaks to the previous mechanics.
In the main Pokémon games, only two basic formulas have ever been used: a flat formula, where the winner's level is not taken into account, and a scaled formula, where the difference between both opponents' levels affects the amount of experience the winner receives. [[Generation V]], {{gen|VII}}, and {{gen|VIII}} games use the scaled formula. All other generations use the flat formula, although each generation generally makes its own additions or tweaks to the previous mechanics.


Note that if a Pokémon both participated in battle and was holding an Exp. Share—or, in Generation I, the [[Exp. Share|Exp. All]] is in the [[Bag]]—they actually receive experience both from participating in battle and from Exp. Share/Exp. All. Therefore, to arrive at their total experience gained, the formula must be evaluated both for a Pokémon that battled and for one that was holding Exp. Share, and those results must be summed. This does not apply in Generation VI or later, as Exp. Share works differently in those games. Up to [[Generation V]], the result is rounded down after each multiplier. From [[Generation V]] onward, the result is subject to standard rounding after each multiplier, rounding down at 0.5, unless specified otherwise.
Note that if a Pokémon both participated in battle and was holding an Exp. Share—or, in Generation I, the [[Exp. Share|Exp. All]] is in the [[Bag]]—they actually receive experience both from participating in battle and from Exp. Share/Exp. All. Therefore, to arrive at their total experience gained, the formula must be evaluated both for a Pokémon that battled and for one that was holding Exp. Share, and those results must be summed. This does not apply in Generation VI or later, as Exp. Share works differently in those games. Up to [[Generation V]], the result is rounded down after each multiplier. From [[Generation V]] onward, the result is subject to standard rounding after each multiplier, rounding down at 0.5, unless specified otherwise. However, the calculations for the base EXP (minus the scaling factor, in the scaled formula) are subject to standard rounding.


The flat formula in the first four Generations is <math>\Delta EXP = \dfrac{b \times L}{7 \times s} \times e \times a \times t</math>.
The flat formula in the first four Generations is <math>\Delta EXP = \dfrac{b \times L}{7} \times \dfrac{1}{s} \times e \times a \times t</math>.


The flat formula in [[Generation VI]] is <math>\Delta EXP = \dfrac{b \times L}{7} \times \dfrac{a}{s} \times t \times e \times v \times f \times p</math>.
The flat formula in [[Generation VI]] is <math>\Delta EXP = \dfrac{b \times L}{7} \times a \times \dfrac{1}{s} \times t \times e \times v \times f \times p</math>.


The scaled formula in [[Generation V]] is <math>\Delta EXP = \left(\dfrac{b \times L}{5 \times s} \times \left(\dfrac{2L + 10}{L + L_{p}+10}\right)^{2.5} +1 \right) \times t \times e \times p \times a</math>. In Black 2 and White 2 only, if a Pokémon would gain more than 100,000 experience at once, it instead gains exactly 100,000 experience.
The scaled formula in [[Generation V]] is <math>\Delta EXP = \left(\dfrac{b \times L}{5} \times \dfrac{1}{s} \times \left(\dfrac{2L + 10}{L + L_{p}+10}\right)^{2.5} +1 \right) \times t \times e \times p \times a</math>. In Black 2 and White 2 only, if a Pokémon would gain more than 100,000 experience at once, it instead gains exactly 100,000 experience.


The scaled formula in [[Generation VII]] onward is <math>\Delta EXP = \left(\dfrac{b \times L}{5 \times s} \times \left(\dfrac{2L + 10}{L + L_{p}+10}\right)^{2.5} +1 \right) \times t \times e \times v \times f \times p</math>.
The scaled formula in [[Generation VII]] onward is <math>\Delta EXP = \left(\dfrac{b \times L}{5} \times \dfrac{1}{s} \times \left(\dfrac{2L + 10}{L + L_{p}+10}\right)^{2.5} +1 \right) \times t \times e \times v \times f \times p</math>.


Where:
Where: