aboutsummaryrefslogtreecommitdiffstats
path: root/engine/items/inventory.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2020-06-27 15:32:24 -0400
committerGitHub <noreply@github.com>2020-06-27 15:32:24 -0400
commit4b853ad676e061a6c4b0fcc030855a2705776864 (patch)
treea6d6f2976827862f4a5f402e92c8479ccf7fb349 /engine/items/inventory.asm
parentMerge pull request #250 from Rangi42/master (diff)
downloadpokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.tar.gz
pokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.tar.xz
pokeyellow-4b853ad676e061a6c4b0fcc030855a2705776864.zip
Separate maps.asm, pics.asm, sprites.asm, and tilesets.asm from main.asm (#251)
Each new file builds its own .o, along with separate main.o and home.o, which necessitates many more "exported::" labels.
Diffstat (limited to 'engine/items/inventory.asm')
-rw-r--r--engine/items/inventory.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index d07f64eb..7ce61cb9 100644
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -4,7 +4,7 @@
; [wcf91] = item ID
; [wItemQuantity] = item quantity
; sets carry flag if successful, unsets carry flag if unsuccessful
-AddItemToInventory_:
+AddItemToInventory_::
ld a, [wItemQuantity] ; a = item quantity
push af
push bc
@@ -97,7 +97,7 @@ AddItemToInventory_:
; hl = address of inventory (either wNumBagItems or wNumBoxItems)
; [wWhichPokemon] = index (within the inventory) of the item to remove
; [wItemQuantity] = quantity to remove
-RemoveItemFromInventory_:
+RemoveItemFromInventory_::
push hl
inc hl
ld a, [wWhichPokemon] ; index (within the inventory) of the item being removed