ref: 28c6eb83418c0bb7ade8c564406dbb710428f0fd
parent: 1891879b62bcc6fb08ecf11216672e02ca7b522f
author: mid-kid <esteve.varela@gmail.com>
date: Tue Feb 27 09:24:29 EST 2018
Use data/items/pocket_names.asm
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -613,7 +613,7 @@
farcall CheckItemPocket
ld a, [wItemAttributeParamBuffer]
dec a
- ld hl, .Pockets
+ ld hl, ItemPocketNames
maskbits NUM_POCKETS
add a
ld e, a
@@ -626,20 +626,7 @@
call CopyName2
ret
-.Pockets:
- dw .Item
- dw .Key
- dw .Ball
- dw .TM
-
-.Item:
- db "ITEM POCKET@"
-.Key:
- db "KEY POCKET@"
-.Ball:
- db "BALL POCKET@"
-.TM:
- db "TM POCKET@"
+INCLUDE "data/items/pocket_names.asm"
CurItemName:
ld a, [wCurItem]