diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-10 20:12:38 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-13 10:59:22 -0400 |
commit | 4eeab8973c8367b3ae8885d158197392489e6174 (patch) | |
tree | 4734c3387645630e3092ef858b2433159a8abdf6 /engine/items | |
parent | 30c327276c937e06e3c8b7990cb9029937739f8e (diff) |
Disassemble the final English debug ROMs
Diffstat (limited to 'engine/items')
-rw-r--r-- | engine/items/items.asm | 10 | ||||
-rw-r--r-- | engine/items/mart.asm | 2 | ||||
-rw-r--r-- | engine/items/switch_items.asm | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/engine/items/items.asm b/engine/items/items.asm index a08f76d3..78b0e2cd 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 edf8f5b5..3e7ffc0e 100644 --- a/engine/items/mart.asm +++ b/engine/items/mart.asm @@ -472,7 +472,7 @@ BuyMenuLoop: ret StandardMartAskPurchaseQuantity: - ld a, 99 + ld a, MAX_ITEM_STACK ld [wItemQuantityBuffer], a ld a, MARTTEXT_HOW_MANY call LoadBuyMenuText diff --git a/engine/items/switch_items.asm b/engine/items/switch_items.asm index cb1554d7..794362ba 100644 --- a/engine/items/switch_items.asm +++ b/engine/items/switch_items.asm @@ -96,11 +96,11 @@ Function248cf: jr nz, .asm_248f5 ld a, [wScrollingMenuCursorPosition] call Function249bf - cp 99 + cp MAX_ITEM_STACK jr z, .asm_248f5 ld a, [wSwitchItem] call Function249bf - cp 99 + cp MAX_ITEM_STACK jr nz, .asm_248f7 .asm_248f5 and a @@ -121,14 +121,14 @@ Function248f9: ld a, [hl] pop hl add [hl] - cp 100 + cp MAX_ITEM_STACK + 1 jr c, .asm_24929 - 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 |