Enhances AI some more.

This commit is contained in:
Neerti
2018-09-14 12:55:12 -04:00
parent 16b40f0dcd
commit 1b6ccdabf7
25 changed files with 738 additions and 122 deletions
+5
View File
@@ -208,6 +208,11 @@
if((locate(/obj/structure/disposalpipe/up) in below) || locate(/obj/machinery/atmospherics/pipe/zpipe/up in below))
return FALSE
/mob/living/can_fall()
if(hovering)
return FALSE
return ..()
/mob/living/carbon/human/can_fall()
if(..())
return species.can_fall(src)
+7 -1
View File
@@ -147,4 +147,10 @@
/turf/simulated/open/is_space()
var/turf/below = GetBelow(src)
return !below || below.is_space()
return !below || below.is_space()
/turf/simulated/open/is_safe_to_enter(mob/living/L)
if(L.can_fall())
if(!locate(/obj/structure/stairs) in GetBelow(src))
return FALSE
return ..()