From a09fe3def311b0ed0da83a8f346bd3ceaf34e4fb Mon Sep 17 00:00:00 2001 From: CaelAislinn Date: Tue, 8 May 2012 15:48:32 +1000 Subject: [PATCH] forgot dat custom item Signed-off-by: CaelAislinn --- code/modules/customitems/item_defines.dm | 7 +++++++ code/modules/customitems/item_spawning.dm | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index 82ce6cbed3..bbc1a915b9 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -112,6 +112,13 @@ icon_state = "orangecamera" pictures_left = 30 + +/obj/item/weapon/card/id/fluff/lifetime //fastler: Fastler Greay; it seemed like something multiple people would have + name = "Lifetime ID Card" + desc = "A modified ID card given only to those people who have devoted their lives to the better interests of NanoTrasen. It sparkles blue." + icon = 'custom_items.dmi' + icon_state = "lifetimeid" + ////////////////////////////////// //////////// Clothing //////////// ////////////////////////////////// diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index c24dfc91f0..e7b7ffe4b5 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -29,6 +29,22 @@ if(istype(M.back,/obj/item/weapon/storage) && M.back:contents.len < M.back:storage_slots) // Try to place it in something on the mob's back first Item.loc = M.back ok = 1 + else if(istype(Item,/obj/item/weapon/card/id)) //player wants a custom ID card - only lifetime cards for now + var/obj/item/weapon/card/id/I = Item + for(var/obj/item/weapon/card/id/C in M) + I.registered_name = M.real_name + I.name = "[M.real_name]'s Lifetime ID Card ([M.mind.role_alt_title ? M.mind.role_alt_title : M.mind.assigned_role])" + I.access = C.access + I.assignment = C.assignment + I.over_jumpsuit = C.over_jumpsuit + I.blood_type = C.blood_type + I.dna_hash = C.dna_hash + I.fingerprint_hash = C.fingerprint_hash + // + I.loc = C.loc + ok = 1 + del(C) + break else for(var/obj/item/weapon/storage/S in M.contents) // Try to place it in any item that can store stuff, on the mob. if (S:len < S:storage_slots)