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/items.asm | |
parent | 30c327276c937e06e3c8b7990cb9029937739f8e (diff) |
Disassemble the final English debug ROMs
Diffstat (limited to 'engine/items/items.asm')
-rw-r--r-- | engine/items/items.asm | 10 |
1 files changed, 5 insertions, 5 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 |