From ad07f5e9e5e182c4b2df406df4f309c786960b62 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Sat, 6 Jul 2013 23:53:59 -0700 Subject: [PATCH] Added procs for a custom item that were overlooked. --- code/modules/customitems/item_defines.dm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index 0a9c392433a..14b40a6a769 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -791,6 +791,25 @@ flags = FPRINT|TABLEPASS w_class = 1 slot_flags = SLOT_MASK + var/obj/item/held //Item inside locket. + +/obj/item/clothing/tie/fluff/konaa_hirano/attack_self(mob/user as mob) + if(held) + user << "You open [src] and [held] falls out." + held.loc = get_turf(user) + src.held = null + +/obj/item/clothing/tie/fluff/konaa_hirano/attackby(var/obj/item/O as obj, mob/user as mob) + if(istype(O,/obj/item/weapon/paper)) + if(held) + usr << "[src] already has something inside it." + else + usr << "You slip [O] into [src]." + user.drop_item() + O.loc = src + src.held = O + return + ..() ////// Medallion - Nasir Khayyam - Jamini