mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[MIRROR] Makes it so living crate creatures can pass plastic flaps as god intended. (#1788)
* Makes it so living crate creatures can pass plastic flaps as god intended. (#55088) * Makes it so living crate creatures can pass plastic flaps as god intended. Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
This commit is contained in:
@@ -71,7 +71,8 @@
|
||||
|
||||
/obj/structure/plasticflaps/CanAllowThrough(atom/movable/A, turf/T)
|
||||
. = ..()
|
||||
|
||||
if(A.pass_flags & PASSFLAPS) //For anything specifically engineered to cross plastic flaps.
|
||||
return TRUE
|
||||
if(istype(A) && (A.pass_flags & PASSGLASS))
|
||||
return prob(60)
|
||||
|
||||
@@ -89,8 +90,6 @@
|
||||
|
||||
else if(isliving(A)) // You Shall Not Pass!
|
||||
var/mob/living/M = A
|
||||
if(isbot(A)) //Bots understand the secrets
|
||||
return TRUE
|
||||
if(M.buckled && istype(M.buckled, /mob/living/simple_animal/bot/mulebot)) // mulebot passenger gets a free pass.
|
||||
return TRUE
|
||||
if(M.body_position == STANDING_UP && !M.ventcrawler && M.mob_size != MOB_SIZE_TINY) //If your not laying down, or a ventcrawler or a small creature, no pass.
|
||||
|
||||
Reference in New Issue
Block a user