Use MAX_LEVEL instead of 100/$64

This commit is contained in:
U-Fish-PC\Daniel 2014-06-10 17:06:30 -04:00
parent fee52c53a4
commit 9eefed45f7
4 changed files with 5 additions and 4 deletions

View file

@ -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