ref: 6de584fe6601785a82ed59888ee70b8a2e5af974
parent: 213f6dfc98f6865131a6c8ba1a37ca002e752868
author: Marcus Huderle <huderlem@gmail.com>
date: Sun Feb 21 07:59:33 EST 2016
Remove hardcoded length values in items.asm
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -863,7 +863,7 @@
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
.cureStatusAilment
- ld bc,4
+ ld bc,wPartyMon1Status - wPartyMon1
add hl,bc ; hl now points to status
ld a,[wcf91]
lb bc, ANTIDOTE_MSG, 1 << PSN
@@ -2039,7 +2039,7 @@
cp a,ETHER
jr nc,.useEther ; if Ether or Max Ether
.usePPUp
- ld bc,21
+ ld bc,wPartyMon1PP - wPartyMon1Moves
add hl,bc
ld a,[hl] ; move PP
cp a,3 << 6 ; have 3 PP Ups already been used?