mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use MAX_LEVEL instead of 100/$64
This commit is contained in:
parent
fee52c53a4
commit
9eefed45f7
4 changed files with 5 additions and 4 deletions
|
|
@ -1214,7 +1214,7 @@ ItemUseMedicine: ; dabb (3:5abb)
|
|||
ld bc,33
|
||||
add hl,bc ; hl now points to level
|
||||
ld a,[hl] ; a = level
|
||||
cp a,100
|
||||
cp a, MAX_LEVEL
|
||||
jr z,.vitaminNoEffect ; can't raise level above 100
|
||||
inc a
|
||||
ld [hl],a ; store incremented level
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue