[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:
SkyratBot
2020-11-23 20:46:15 +00:00
committed by GitHub
co-authored by ArcaneMusic
parent 8bd4600302
commit 1e040f5f1e
4 changed files with 5 additions and 3 deletions
+2 -3
View File
@@ -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.