diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-27 12:31:59 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-27 12:31:59 -0400 |
commit | e9767dcfa8e91559787d1a97d5c831d12b346fe0 (patch) | |
tree | e41ba7d81f169a0f3232ebb7a9e7380f5f8afc35 | |
parent | 51352aaa4da0e6fc219740415db2f02b6e17129b (diff) |
More optimal fix for the experience underflow bug
-rw-r--r-- | docs/bugs_and_glitches.md | 3 |
1 files changed, 1 insertions, 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 |