mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
fix some labels/comments regarding stat names
hg-commit-id: 252f18ba93f8
This commit is contained in:
parent
9391ee1da4
commit
a6bce22ca9
14
main.asm
14
main.asm
|
@ -16495,20 +16495,20 @@ ItemUseMedicine: ; 5ABB
|
||||||
ld a,[$cf91]
|
ld a,[$cf91]
|
||||||
sub a,HP_UP - 1
|
sub a,HP_UP - 1
|
||||||
ld c,a
|
ld c,a
|
||||||
.vitaminNameLoop\@ ; loop to get the address of the name of the vitamin
|
.statNameLoop\@ ; loop to get the address of the name of the stat the vitamin increases
|
||||||
dec c
|
dec c
|
||||||
jr z,.next34\@
|
jr z,.gotStatName\@
|
||||||
.vitaminNameInnerLoop\@
|
.statNameInnerLoop\@
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld b,a
|
ld b,a
|
||||||
ld a,$50
|
ld a,$50
|
||||||
cp b
|
cp b
|
||||||
jr nz,.vitaminNameInnerLoop\@
|
jr nz,.statNameInnerLoop\@
|
||||||
jr .vitaminNameLoop\@
|
jr .statNameLoop\@
|
||||||
.next34\@
|
.gotStatName\@
|
||||||
ld de,$cf4b
|
ld de,$cf4b
|
||||||
ld bc,10
|
ld bc,10
|
||||||
call CopyData ; copy the vitamin's name to $cf4b
|
call CopyData ; copy the stat's name to $cf4b
|
||||||
ld a,$8e
|
ld a,$8e
|
||||||
call $23b1 ; play sound
|
call $23b1 ; play sound
|
||||||
ld hl,VitaminStatRoseText
|
ld hl,VitaminStatRoseText
|
||||||
|
|
Loading…
Reference in a new issue