From 666f28aa498e26e334ad066ae146db2a4ada4614 Mon Sep 17 00:00:00 2001 From: bgobandit Date: Thu, 22 Dec 2016 15:33:22 -0500 Subject: [PATCH] Adds lumps of coal. (#22346) --- code/game/objects/items/trash.dm | 11 +++++++++++ code/game/objects/items/weapons/gift.dm | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/trash.dm b/code/game/objects/items/trash.dm index 1f1ce6cfb3a857..6a7e598760017e 100644 --- a/code/game/objects/items/trash.dm +++ b/code/game/objects/items/trash.dm @@ -67,3 +67,14 @@ /obj/item/trash/attack(mob/M, mob/living/user) return + +/obj/item/trash/coal + name = "lump of coal" + icon = 'icons/obj/mining.dmi' + icon_state = "slag" + desc = "Someone's gotten on the naughty list." + +/obj/item/trash/coal/burn() + visible_message("[src] fuses into a diamond! Someone wasn't so naughty after all...") + new /obj/item/weapon/ore/diamond(loc) + qdel(src) \ No newline at end of file diff --git a/code/game/objects/items/weapons/gift.dm b/code/game/objects/items/weapons/gift.dm index dc7e5f17ea5c7e..439ce64ea744f5 100644 --- a/code/game/objects/items/weapons/gift.dm +++ b/code/game/objects/items/weapons/gift.dm @@ -64,7 +64,8 @@ /obj/item/clothing/suit/poncho/green, /obj/item/clothing/suit/poncho/red, /obj/item/clothing/suit/snowman, - /obj/item/clothing/head/snowman) + /obj/item/clothing/head/snowman, + /obj/item/trash/coal) gift_type_list += subtypesof(/obj/item/clothing/head/collectable) gift_type_list += subtypesof(/obj/item/toy) - (((typesof(/obj/item/toy/cards) - /obj/item/toy/cards/deck) + /obj/item/toy/figure + /obj/item/toy/ammo)) //All toys, except for abstract types and syndicate cards.