Merge pull request #1033 from Yoshax/burnbabyburn

Allows lighting of smokeables on burning people
This commit is contained in:
Datraen
2016-02-21 11:32:16 -05:00
@@ -195,6 +195,14 @@ CIGARETTE PACKETS ARE IN FANCY.DM
text = replacetext(text, "FLAME", "[W.name]")
light(text)
/obj/item/clothing/mask/smokable/attack(var/mob/living/M, var/mob/living/user, def_zone)
if(istype(M) && M.on_fire)
user.do_attack_animation(M)
light("<span class='notice'>[user] coldly lights the [name] with the burning body of [M].</span>")
return 1
else
return ..()
/obj/item/clothing/mask/smokable/cigarette
name = "cigarette"
desc = "A roll of tobacco and nicotine."