summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-13 13:05:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-13 15:18:28 -0400
commite239aa4aba89156ac52b2af26d1bbf084ee88e75 (patch)
tree28e1dd069acc5c1a88662ce275f7102da68f3c4e /engine/items
parent4fb008844030283ad34cb0802b088b4dd7c9891c (diff)
Disassemble the final English debug ROM
Diffstat (limited to 'engine/items')
-rw-r--r--engine/items/items.asm10
-rw-r--r--engine/items/mart.asm4
-rw-r--r--engine/items/switch_items.asm10
3 files changed, 12 insertions, 12 deletions
diff --git a/engine/items/items.asm b/engine/items/items.asm
index a08f76d31..78b0e2cd9 100644
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -168,7 +168,7 @@ PutItemInPocket:
jr z, .terminator
cp c
jr nz, .next
- ld a, 99
+ ld a, MAX_ITEM_STACK
sub [hl]
add b
ld b, a
@@ -205,14 +205,14 @@ PutItemInPocket:
jr nz, .loop2
ld a, [wItemQuantityBuffer]
add [hl]
- cp 100
+ cp MAX_ITEM_STACK + 1
jr nc, .newstack
ld [hl], a
jr .done
.newstack
- ld [hl], 99
- sub 99
+ ld [hl], MAX_ITEM_STACK
+ sub MAX_ITEM_STACK
ld [wItemQuantityBuffer], a
jr .loop2
@@ -408,7 +408,7 @@ ReceiveTMHM:
add hl, bc
ld a, [wItemQuantityChangeBuffer]
add [hl]
- cp 100
+ cp MAX_ITEM_STACK + 1
jr nc, .toomany
ld [hl], a
scf
diff --git a/engine/items/mart.asm b/engine/items/mart.asm
index a0773df4a..b8c32c203 100644
--- a/engine/items/mart.asm
+++ b/engine/items/mart.asm
@@ -498,7 +498,7 @@ BuyMenuLoop:
ret
StandardMartAskPurchaseQuantity:
- ld a, 99
+ ld a, MAX_ITEM_STACK
ld [wItemQuantityBuffer], a
ld a, MARTTEXT_HOW_MANY
call LoadBuyMenuText
@@ -557,7 +557,7 @@ RooftopSaleAskPurchaseQuantity:
ld a, MARTTEXT_HOW_MANY
call LoadBuyMenuText
call .GetSalePrice
- ld a, 99
+ ld a, MAX_ITEM_STACK
ld [wItemQuantityBuffer], a
farcall RooftopSale_SelectQuantityToBuy
call ExitMenu
diff --git a/engine/items/switch_items.asm b/engine/items/switch_items.asm
index 680e548c1..fc6fce6a4 100644
--- a/engine/items/switch_items.asm
+++ b/engine/items/switch_items.asm
@@ -96,11 +96,11 @@ Function249a7:
jr nz, .asm_249cd
ld a, [wScrollingMenuCursorPosition]
call Function24a97
- cp 99
+ cp MAX_ITEM_STACK
jr z, .asm_249cd
ld a, [wSwitchItem]
call Function24a97
- cp 99
+ cp MAX_ITEM_STACK
jr nz, .asm_249cf
.asm_249cd
and a
@@ -121,14 +121,14 @@ Function249d1:
ld a, [hl]
pop hl
add [hl]
- cp 100
+ cp MAX_ITEM_STACK + 1
jr c, .asm_24a01
- sub 99
+ sub MAX_ITEM_STACK
push af
ld a, [wScrollingMenuCursorPosition]
call ItemSwitch_GetNthItem
inc hl
- ld [hl], 99
+ ld [hl], MAX_ITEM_STACK
ld a, [wSwitchItem]
call ItemSwitch_GetNthItem
inc hl