mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Fixes foam spreading through public airlocks and windoors (#67101)
* Fixes foam spreading through public airlocks and windoors * nova
This commit is contained in:
@@ -361,7 +361,7 @@
|
||||
if((mover.pass_flags & PASSGRILLE) || istype(mover, /obj/projectile))
|
||||
return prob(girderpasschance)
|
||||
|
||||
/obj/structure/girder/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/girder/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
. = !density
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSGRILLE)
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
if(!. && istype(mover, /obj/projectile))
|
||||
return prob(30)
|
||||
|
||||
/obj/structure/grille/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/grille/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
. = !density
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSGRILLE)
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/structure/plasticflaps/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/plasticflaps/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
if(isliving(caller))
|
||||
if(isbot(caller))
|
||||
return TRUE
|
||||
@@ -73,7 +73,7 @@
|
||||
return FALSE
|
||||
|
||||
if(caller?.pulling)
|
||||
return CanAStarPass(ID, to_dir, caller.pulling)
|
||||
return CanAStarPass(ID, to_dir, caller.pulling, no_id = no_id)
|
||||
return TRUE //diseases, stings, etc can pass
|
||||
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
return . || mover.throwing || mover.movement_type & (FLYING | FLOATING)
|
||||
return TRUE
|
||||
|
||||
/obj/structure/railing/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/railing/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
if(!(to_dir & dir))
|
||||
return TRUE
|
||||
return ..()
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
if(locate(/obj/structure/table) in get_turf(mover))
|
||||
return TRUE
|
||||
|
||||
/obj/structure/table/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/table/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
. = !density
|
||||
if(caller)
|
||||
. = . || (caller.pass_flags & PASSTABLE)
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
/obj/structure/window/get_dumping_location()
|
||||
return null
|
||||
|
||||
/obj/structure/window/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller)
|
||||
/obj/structure/window/CanAStarPass(obj/item/card/id/ID, to_dir, atom/movable/caller, no_id = FALSE)
|
||||
if(!density)
|
||||
return TRUE
|
||||
if(fulltile || (dir == to_dir))
|
||||
|
||||
Reference in New Issue
Block a user