summaryrefslogtreecommitdiff
path: root/engine/items
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-07-22 09:20:33 -0400
committerGitHub <noreply@github.com>2018-07-22 09:20:33 -0400
commita586811e197d2a28d3a08dff03548fb69342da96 (patch)
treed5eec033243b0031afd3a82d47bbe1b7779d1675 /engine/items
parent5ec276e7c77244befe0b6c9931cda191aa3818b6 (diff)
parent5b4ef99f4bfec7a1cf41cd3eab601d355bb0fadf (diff)
Merge pull request #38 from luckytyphlosion/section-reorg
Add linkerscript to replace completely anonymous sections.
Diffstat (limited to 'engine/items')
-rwxr-xr-xengine/items/inventory.asm8
-rwxr-xr-xengine/items/item_effects.asm4
2 files changed, 6 insertions, 6 deletions
diff --git a/engine/items/inventory.asm b/engine/items/inventory.asm
index c30e5c0..a11bcec 100755
--- a/engine/items/inventory.asm
+++ b/engine/items/inventory.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Inventory", ROMX[$4AA1], BANK[$03]
+SECTION "engine/items/inventory.asm@Inventory", ROMX
_ReceiveItem: ; 03:4AA1
call DoesHLEqualwNumBagItems
@@ -588,7 +588,7 @@ GetNumberedTMHM: ; 03:4D1A
and a
ret
-SECTION "GetItemAmount", ROMX[$4e10], BANK[$03]
+SECTION "engine/items/inventory.asm@GetItemAmount", ROMX
; Returns carry if user has the item
; and the amount in b
@@ -634,7 +634,7 @@ CheckAmountInKeyItems: ; 03:4E2B
scf
ret
-SECTION "_CheckTossableItem", ROMX[$53AD], BANK[$03]
+SECTION "engine/items/inventory.asm@_CheckTossableItem", ROMX
; Return 1 in wItemAttributeParamBuffer and
; carry if wCurItem can't be removed from the bag.
@@ -720,4 +720,4 @@ GetItemPrice: ; 03:540C
ld d, a
pop bc
pop hl
- ret
+ ret \ No newline at end of file
diff --git a/engine/items/item_effects.asm b/engine/items/item_effects.asm
index 7f886f1..6f854f0 100755
--- a/engine/items/item_effects.asm
+++ b/engine/items/item_effects.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "ApplyPPUp", ROMX[$78f6], BANK[$03]
+SECTION "engine/items/item_effects.asm", ROMX
ApplyPPUp: ; 03:78f6
ld a, MON_MOVES
@@ -76,4 +76,4 @@ ComputeMaxPP: ; 03:792B
.no_pp_up
ld [hl], b
pop bc
- ret
+ ret \ No newline at end of file