This commit is contained in:
Aronai Sieyes
2021-07-24 16:41:37 -04:00
parent 0ae82a0ea9
commit df3bb7812f
3 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -35,6 +35,7 @@
var/has_distress_beacon
var/list/levels_for_distress
var/list/unowned_areas // areas we don't own despite them being present on our z
/obj/effect/overmap/visitable/Initialize()
. = ..()
@@ -137,7 +138,12 @@
//Helper for init.
/obj/effect/overmap/visitable/proc/check_ownership(obj/object)
if((get_z(object) in map_z) && !(get_area(object) in SSshuttles.shuttle_areas))
var/area/A = get_area(object)
if(A in SSshuttles.shuttle_areas)
return 0
if(is_type_in_list(A, unowned_areas))
return 0
if(get_z(object) in map_z)
return 1
//If shuttle_name is false, will add to generic waypoints; otherwise will add to restricted. Does not do checks.