This commit is contained in:
Ghommie
2020-02-03 07:20:16 +01:00
parent 81b5fe2de3
commit 0428b05cff
@@ -202,16 +202,17 @@
/obj/item/grenade/chem_grenade/teargas/moustache/prime()
var/list/check_later = list()
for(var/mob/living/carbon/M in get_turf(src))
check_later += M
for(var/mob/living/carbon/C in get_turf(src))
check_later += C
. = ..()
if(!.) //grenade did not properly prime.
return
for(var/M in check_later)
if(!istype(M.wear_mask, /obj/item/clothing/mask/gas/clown_hat) && !istype(M.wear_mask, /obj/item/clothing/mask/gas/mime) )
if(!M.wear_mask || M.dropItemToGround(M.wear_mask))
var/mob/living/carbon/C = M
if(!istype(C.wear_mask, /obj/item/clothing/mask/gas/clown_hat) && !istype(C.wear_mask, /obj/item/clothing/mask/gas/mime))
if(!C.wear_mask || C.dropItemToGround(C.wear_mask))
var/obj/item/clothing/mask/fakemoustache/sticky/the_stash = new /obj/item/clothing/mask/fakemoustache/sticky()
M.equip_to_slot_or_del(the_stash, SLOT_WEAR_MASK, TRUE, TRUE, TRUE, TRUE)
C.equip_to_slot_or_del(the_stash, SLOT_WEAR_MASK, TRUE, TRUE, TRUE, TRUE)
/obj/item/clothing/mask/fakemoustache/sticky
var/unstick_time = 2 MINUTES