Makes airtight plastic flaps unconstructable

This commit is contained in:
Heroman
2019-08-13 21:58:43 +10:00
parent afe9accf94
commit 5ac0a74b5a
2 changed files with 4 additions and 7 deletions
+4 -6
View File
@@ -8,7 +8,6 @@
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,
@@ -37,12 +36,12 @@
if (istype(A, /obj/structure/bed) && B.has_buckled_mobs())//if it's a bed/chair and someone is buckled, it will not pass
return 0
if(istype(A, /obj/vehicle)) //no vehicles
if(istype(A, /obj/vehicle) || istype (A, /obj/mecha)) //no vehicles
return 0
var/mob/living/M = A
if(istype(M))
if(M.lying && can_pass_lying)
if(M.lying)
return ..()
for(var/mob_type in mobs_can_pass)
if(istype(A, mob_type))
@@ -64,6 +63,5 @@
/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. Have extra safety installed, preventing passage of living beings."
can_atmos_pass = ATMOS_PASS_NO
can_pass_lying = 0
desc = "Heavy duty, airtight, plastic flaps."
can_atmos_pass = ATMOS_PASS_NO