From e9767dcfa8e91559787d1a97d5c831d12b346fe0 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 27 Sep 2020 12:31:59 -0400 Subject: [PATCH] More optimal fix for the experience underflow bug --- docs/bugs_and_glitches.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index a0dd71f38..7e502d3ab 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -839,10 +839,9 @@ This can bring Pokémon straight from level 1 to 100 by gaining just a few exper CalcExpAtLevel: ; (a/b)*n**3 + c*n**2 + d*n - e + ld a, d -+ cp 1 ++ dec a + jr nz, .UseExpFormula +; Pokémon have 0 experience at level 1 -+ xor a + ld hl, hProduct + ld [hli], a + ld [hli], a