summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:52:59 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:52:59 -0500
commit5c143ed970c969832953699e80b1fcaab182c5a1 (patch)
treee53bfcffbb48a14a59046c1e32da8b9ba6478bee /engine/items
parentb56c1b6351f51742903250ee0c4eae9d22e2b6a5 (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 7a808f61..07aaaf38 100644
--- a/engine/items/buy_sell_toss.asm
+++ b/engine/items/buy_sell_toss.asm
@@ -7,9 +7,9 @@ SelectQuantityToToss:
SelectQuantityToBuy:
farcall GetItemPrice
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
@@ -18,9 +18,9 @@ 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
@@ -157,9 +157,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