Skip to content

Commit

Permalink
Adds lumps of coal. (#22346)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgobandit authored and optimumtact committed Dec 22, 2016
1 parent 2122091 commit 666f28a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions code/game/objects/items/trash.dm
Expand Up @@ -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)
3 changes: 2 additions & 1 deletion code/game/objects/items/weapons/gift.dm
Expand Up @@ -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.
Expand Down

0 comments on commit 666f28a

Please sign in to comment.