diff options
Diffstat (limited to 'engine/items')
-rw-r--r-- | engine/items/items.asm | 10 | ||||
-rw-r--r-- | engine/items/mart.asm | 4 | ||||
-rw-r--r-- | engine/items/switch_items.asm | 10 |
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 |