aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/CeladonMartRoof.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/CeladonMartRoof.asm')
-rw-r--r--scripts/CeladonMartRoof.asm19
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/CeladonMartRoof.asm b/scripts/CeladonMartRoof.asm
index 56be937f..57eab858 100644
--- a/scripts/CeladonMartRoof.asm
+++ b/scripts/CeladonMartRoof.asm
@@ -14,15 +14,16 @@ CeladonMartRoofScript_GetDrinksInBag:
jr z, .done
push hl
push de
- ld [wd11e], a
+ ld [wTempByteValue], a
ld b, a
predef GetQuantityOfItemInBag
pop de
pop hl
ld a, b
and a
- jr z, .loop ; if the item isn't in the bag
- ld a, [wd11e]
+ jr z, .loop
+ ; A drink is in the bag
+ ld a, [wTempByteValue]
ld [de], a
inc de
push hl
@@ -42,8 +43,8 @@ CeladonMartRoofDrinkList:
db 0 ; end
CeladonMartRoofScript_GiveDrinkToGirl:
- ld hl, wd730
- set 6, [hl]
+ ld hl, wStatusFlags5
+ set BIT_NO_TEXT_DELAY, [hl]
ld hl, CeladonMartRoofLittleGirlGiveHerWhichDrinkText
call PrintText
xor a
@@ -69,8 +70,8 @@ CeladonMartRoofScript_GiveDrinkToGirl:
call TextBoxBorder
call UpdateSprites
call CeladonMartRoofScript_PrintDrinksInBag
- ld hl, wd730
- res 6, [hl]
+ ld hl, wStatusFlags5
+ res BIT_NO_TEXT_DELAY, [hl]
call HandleMenuInput
bit BIT_B_BUTTON, a
ret nz
@@ -196,13 +197,13 @@ CeladonMartRoofScript_PrintDrinksInBag:
cp $ff
ret z
push hl
- ld [wd11e], a
+ ld [wNamedObjectIndex], a
call GetItemName
hlcoord 2, 2
ldh a, [hItemCounter]
ld bc, SCREEN_WIDTH * 2
call AddNTimes
- ld de, wcd6d
+ ld de, wNameBuffer
call PlaceString
ld hl, hItemCounter
inc [hl]