Stamping out Cigarettes Doesn't Teleport Them to Your Mouth Anymore (#28993)

* Update cigs.dm

* Update cigs.dm
This commit is contained in:
CRUNCH
2025-04-26 19:26:40 +01:00
committed by GitHub
parent a9ea980d5c
commit dc5f3a8365
+9 -4
View File
@@ -304,10 +304,15 @@ LIGHTERS ARE IN LIGHTERS.DM
if(ismob(loc))
var/mob/living/M = loc
to_chat(M, "<span class='notice'>Your [name] goes out.</span>")
M.drop_item_to_ground(src, force = TRUE) //Force the un-equip so the overlays update
butt.slot_flags |= ITEM_SLOT_MASK // Temporarily allow it to go on masks
M.equip_to_slot_if_possible(butt, ITEM_SLOT_MASK)
butt.slot_flags &= ~ITEM_SLOT_MASK
// Only put the butt in the user's mouth if there's already a cig there.
if(M.wear_mask == src)
to_chat(M, "<span class='userdanger'>Butt in your mouth!</span>")
M.drop_item_to_ground(src, force = TRUE) //Force the un-equip so the overlays update
butt.slot_flags |= ITEM_SLOT_MASK // Temporarily allow it to go on masks
M.equip_to_slot_if_possible(butt, ITEM_SLOT_MASK)
butt.slot_flags &= ~ITEM_SLOT_MASK
else
M.drop_item_to_ground(src, force = TRUE)
STOP_PROCESSING(SSobj, src)
qdel(src)