mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-20 20:52:52 +01:00
Enhances AI some more.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 ..()
|
||||
Reference in New Issue
Block a user