mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-12 00:04:48 +13:00
Remove hardcoded length values in items.asm
This commit is contained in:
parent
213f6dfc98
commit
6de584fe66
|
|
@ -863,7 +863,7 @@ ItemUseMedicine: ; dabb (3:5abb)
|
||||||
jr nc,.healHP ; if it's a Full Restore or one of the potions
|
jr nc,.healHP ; if it's a Full Restore or one of the potions
|
||||||
; fall through if it's one of the status-specifc healing items
|
; fall through if it's one of the status-specifc healing items
|
||||||
.cureStatusAilment
|
.cureStatusAilment
|
||||||
ld bc,4
|
ld bc,wPartyMon1Status - wPartyMon1
|
||||||
add hl,bc ; hl now points to status
|
add hl,bc ; hl now points to status
|
||||||
ld a,[wcf91]
|
ld a,[wcf91]
|
||||||
lb bc, ANTIDOTE_MSG, 1 << PSN
|
lb bc, ANTIDOTE_MSG, 1 << PSN
|
||||||
|
|
@ -2039,7 +2039,7 @@ ItemUsePPRestore: ; e31e (3:631e)
|
||||||
cp a,ETHER
|
cp a,ETHER
|
||||||
jr nc,.useEther ; if Ether or Max Ether
|
jr nc,.useEther ; if Ether or Max Ether
|
||||||
.usePPUp
|
.usePPUp
|
||||||
ld bc,21
|
ld bc,wPartyMon1PP - wPartyMon1Moves
|
||||||
add hl,bc
|
add hl,bc
|
||||||
ld a,[hl] ; move PP
|
ld a,[hl] ; move PP
|
||||||
cp a,3 << 6 ; have 3 PP Ups already been used?
|
cp a,3 << 6 ; have 3 PP Ups already been used?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue