From 9c8a3803ff4c0d5d40f8ff4106f8edb3572d3ca9 Mon Sep 17 00:00:00 2001 From: Atermonera Date: Thu, 11 Jul 2019 22:51:46 -0800 Subject: [PATCH] Merge pull request #6294 from Heroman3003/plastic-unflap Makes airtight plastic flaps less of a free pass --- code/game/objects/structures/plasticflaps.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm index 8f21f72781..bf15ffdfd7 100644 --- a/code/game/objects/structures/plasticflaps.dm +++ b/code/game/objects/structures/plasticflaps.dm @@ -8,6 +8,7 @@ layer = MOB_LAYER plane = MOB_PLANE explosion_resistance = 5 + var/can_pass_lying = 1 var/list/mobs_can_pass = list( /mob/living/bot, /mob/living/simple_mob/slime/xenobio, @@ -18,9 +19,9 @@ /obj/structure/plasticflaps/attackby(obj/item/P, mob/user) if(P.is_wirecutter()) playsound(src, P.usesound, 50, 1) - user << "You start to cut the plastic flaps." + to_chat(user, "You start to cut the plastic flaps.") if(do_after(user, 10 * P.toolspeed)) - user << "You cut the plastic flaps." + to_chat(user, "You cut the plastic flaps.") var/obj/item/stack/material/plastic/A = new /obj/item/stack/material/plastic( src.loc ) A.amount = 4 qdel(src) @@ -41,7 +42,7 @@ var/mob/living/M = A if(istype(M)) - if(M.lying) + if(M.lying && can_pass_lying) return ..() for(var/mob_type in mobs_can_pass) if(istype(A, mob_type)) @@ -63,5 +64,6 @@ /obj/structure/plasticflaps/mining //A specific type for mining that doesn't allow airflow because of them damn crates name = "airtight plastic flaps" - desc = "Heavy duty, airtight, plastic flaps." + desc = "Heavy duty, airtight, plastic flaps. Have extra safety installed, preventing passage of living beings." can_atmos_pass = ATMOS_PASS_NO + can_pass_lying = 0 \ No newline at end of file