diff options
author | dannye <33dannye@gmail.com> | 2020-11-04 00:06:44 -0600 |
---|---|---|
committer | dannye <33dannye@gmail.com> | 2020-11-04 00:06:44 -0600 |
commit | 5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch) | |
tree | dde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /engine/get_bag_item_quantity.asm | |
parent | 53fcd05aa24693093d8af1dc8ec4fedd3957decc (diff) |
Sync with pokered
Diffstat (limited to 'engine/get_bag_item_quantity.asm')
-rw-r--r-- | engine/get_bag_item_quantity.asm | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/engine/get_bag_item_quantity.asm b/engine/get_bag_item_quantity.asm deleted file mode 100644 index f10df1a0..00000000 --- a/engine/get_bag_item_quantity.asm +++ /dev/null @@ -1,18 +0,0 @@ -GetQuantityOfItemInBag: -; In: b = item ID -; Out: b = how many of that item are in the bag - call GetPredefRegisters - ld hl, wNumBagItems -.loop - inc hl - ld a, [hli] - cp $ff - jr z, .notInBag - cp b - jr nz, .loop - ld a, [hl] - ld b, a - ret -.notInBag - ld b, 0 - ret |