Mobs buckled to mulebots now pass through plastic flaps.

All ventcrawler and tiny sized mobs also pass through them now.
This commit is contained in:
phil235
2015-08-23 21:39:22 +02:00
parent 27b7e3b6f6
commit 20023f79d7

View File

@@ -93,7 +93,9 @@
else if(istype(A, /mob/living)) // You Shall Not Pass!
var/mob/living/M = A
if(!M.lying && !ismonkey(M) && !isslime(M)) //If your not laying down, or a small creature, no pass.
if(M.buckled && istype(M.buckled, /obj/machinery/bot/mulebot)) // mulebot passenger gets a free pass.
return 1
if(!M.lying && !M.ventcrawler && M.mob_size != MOB_SIZE_TINY) //If your not laying down, or a ventcrawler or a small creature, no pass.
return 0
return ..()