Lighters and Cig Packets (#637)

changes:

rscadd: "Lighters can now fit into cigarette packets."
bugfix: "Lighters will now go out when placed into a container"
This commit is contained in:
NanakoAC
2016-08-02 21:43:22 +03:00
committed by skull132
parent ecf8425a19
commit 80f7e49f5e
3 changed files with 46 additions and 1 deletions
@@ -499,4 +499,11 @@ CIGARETTE PACKETS ARE IN FANCY.DM
var/turf/location = get_turf(src)
if(location)
location.hotspot_expose(700, 5)
if (istype(loc, /obj/item/weapon/storage))//A lighter shouldn't stay lit inside a closed container
lit = 0
icon_state = "[base_state]"
item_state = "[base_state]"
set_light(0)
processing_objects.Remove(src)
return
@@ -136,7 +136,7 @@
throwforce = 2
slot_flags = SLOT_BELT
storage_slots = 6
can_hold = list(/obj/item/clothing/mask/smokable/cigarette)
can_hold = list(/obj/item/clothing/mask/smokable/cigarette, /obj/item/weapon/flame/lighter)
icon_type = "cigarette"
/obj/item/weapon/storage/fancy/cigarettes/New()