Experience: Difference between revisions

→‎Gain formula: This looks rough but I promise this is how the game does it with its weird rounding system
(→‎Trivia: Figured it's about time we brought this back, even if this could only be done via hacking)
(→‎Gain formula: This looks rough but I promise this is how the game does it with its weird rounding system)
Line 1,550: Line 1,550:
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 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 a \times \dfrac{1}{s} \times \left(\dfrac{\sqrt{2L + 10} \times \left(2L + 10\right)^{2}}{\sqrt{L + L_{p} + 10} \times \left(L + L_{p} + 10\right)^{2}}\right) +1 \right) \times t \times e \times p</math>, where each square root is rounded to the nearest multiple of 1/4096, subject to standard rounding, rounding down at 0.5. 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 a \times \dfrac{1}{s} \times \left(\dfrac{\Biggl \lfloor \sqrt{2L + 10} \times \left(2L + 10\right)^{2}\Biggr \rfloor }{\Biggl \lfloor \sqrt{L + L_{p} + 10} \times \left(L + L_{p} + 10\right)^{2}\Biggr \rfloor} \right ) +1 \right) \times t \times e \times p</math>, where each square root is rounded to the nearest multiple of 1/4096, subject to standard rounding, rounding up at 0.5. 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 \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>.
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>.