summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorPokeglitch <pokeglitchx@gmail.com>2018-06-15 06:57:48 -0400
committerPokeglitch <pokeglitchx@gmail.com>2018-06-15 06:57:48 -0400
commitc3b0443d8b9280fcb5d852e188037cf40ce4522c (patch)
tree93794d65fafe9af06a916b3172e42a8ec6f28538 /engine/items
parentc955c8d353f63c07cc4ac71160e4a13061192c8a (diff)
Using macros for FarCall
Diffstat (limited to 'engine/items')
-rwxr-xr-xengine/items/inventory.asm12
1 files changed, 3 insertions, 9 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index 5927f6d..9c5a1ec 100755
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -6,9 +6,7 @@ _ReceiveItem: ; 03:4AA1
call DoesHLEqualwNumBagItems
jp nz, PutItemInPocket
push hl
- ld hl, CheckItemPocket
- ld a, BANK(CheckItemPocket)
- call FarCall_hl
+ callab CheckItemPocket
ld a, [wItemAttributeParamBuffer]
dec a
ld hl, .Pockets
@@ -47,9 +45,7 @@ _TossItem: ; 03:4AE0
call DoesHLEqualwNumBagItems
jr nz, .remove_item
push hl
- ld hl, CheckItemPocket
- ld a, BANK(CheckItemPocket)
- call FarCall_hl
+ callab CheckItemPocket
ld a, [wItemAttributeParamBuffer]
dec a
ld hl, .Pockets
@@ -90,9 +86,7 @@ _CheckItem: ; 03:4B1E
call DoesHLEqualwNumBagItems
jr nz, .not_bag
push hl
- ld hl, CheckItemPocket
- ld a, BANK(CheckItemPocket)
- call FarCall_hl
+ callab CheckItemPocket
ld a, [wItemAttributeParamBuffer]
dec a
ld hl, .Pockets