summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:53:07 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:53:07 -0500
commitc88c4a834094e91f1505eab0e22294963e1dd987 (patch)
treeddfc0116b06e1327cf206abf5ed16e79e159fdb4 /engine/items
parent826e070f0443b50ff31a49b4faf7c66577f1e26e (diff)
Identify more uses of wBuffer1-6
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/buy_sell_toss.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/items/buy_sell_toss.asm b/engine/items/buy_sell_toss.asm
index 84b42cf4f..310deaeb8 100644
--- a/engine/items/buy_sell_toss.asm
+++ b/engine/items/buy_sell_toss.asm
@@ -8,9 +8,9 @@ SelectQuantityToBuy:
farcall GetItemPrice
RooftopSale_SelectQuantityToBuy:
ld a, d
- ld [wBuffer1], a
+ ld [wBuySellItemPrice + 0], a
ld a, e
- ld [wBuffer2], a
+ ld [wBuySellItemPrice + 1], a
ld hl, BuyItem_MenuHeader
call LoadMenuHeader
call Toss_Sell_Loop
@@ -19,9 +19,9 @@ RooftopSale_SelectQuantityToBuy:
SelectQuantityToSell:
farcall GetItemPrice
ld a, d
- ld [wBuffer1], a
+ ld [wBuySellItemPrice + 0], a
ld a, e
- ld [wBuffer2], a
+ ld [wBuySellItemPrice + 1], a
ld hl, SellItem_MenuHeader
call LoadMenuHeader
call Toss_Sell_Loop
@@ -159,9 +159,9 @@ DisplaySellingPrice:
BuySell_MultiplyPrice:
xor a
ldh [hMultiplicand + 0], a
- ld a, [wBuffer1]
+ ld a, [wBuySellItemPrice + 0]
ldh [hMultiplicand + 1], a
- ld a, [wBuffer2]
+ ld a, [wBuySellItemPrice + 1]
ldh [hMultiplicand + 2], a
ld a, [wItemQuantityChangeBuffer]
ldh [hMultiplier], a