defines isspacearea (#25064)

* isspace define

* istype to isspacearea

* paranthesis

* fixes

* I HATE VSCDEV ON MMOBILE
This commit is contained in:
Deniz
2024-04-12 20:44:22 +02:00
committed by GitHub
parent d29b88f81b
commit d88e03c297
8 changed files with 10 additions and 8 deletions
@@ -266,7 +266,7 @@
nagged = TRUE
/mob/living/simple_animal/bot/floorbot/proc/is_hull_breach(turf/t) // Ignore space tiles not considered part of a structure, also ignores shuttle docking areas.
return !istype(get_area(t), /area/space)
return !isspacearea(get_area(t))
// Floorbots, having several functions, need sort out special conditions here.
/mob/living/simple_animal/bot/floorbot/process_scan(atom/scan_target)
+1 -1
View File
@@ -267,7 +267,7 @@
return ..()
/mob/camera/aiEye/remote/shuttle_docker/setLoc(T)
if(isspaceturf(get_turf(T)) || istype(get_area(T), /area/space) || istype(get_area(T), /area/shuttle))
if(isspaceturf(get_turf(T)) || isspacearea(get_area(T)) || istype(get_area(T), /area/shuttle))
..()
var/obj/machinery/computer/camera_advanced/shuttle_docker/console = origin
console.checkLandingSpot()