mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
More optimal fix for the experience underflow bug
This commit is contained in:
parent
51352aaa4d
commit
e9767dcfa8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user