Unit tests powernets to make sure the whole station is connected. (#70090)

This commit is contained in:
John Willard
2022-09-28 01:33:56 -04:00
committed by GitHub
parent cf0f039c8e
commit be450e12c8
12 changed files with 183 additions and 114 deletions

View File

@@ -5,7 +5,8 @@ SUBSYSTEM_DEF(machines)
wait = 2 SECONDS
var/list/processing = list()
var/list/currentrun = list()
var/list/powernets = list()
///List of all powernets on the server.
var/list/datum/powernet/powernets = list()
/datum/controller/subsystem/machines/Initialize()
makepowernets()

View File

@@ -397,7 +397,13 @@ Used by the AI doomsday and the self-destruct nuke.
GLOBAL_LIST_EMPTY(the_station_areas)
/datum/controller/subsystem/mapping/proc/generate_station_area_list()
var/static/list/station_areas_blacklist = typecacheof(list(/area/space, /area/mine, /area/ruin, /area/centcom/asteroid/nearstation))
var/static/list/station_areas_blacklist = typecacheof(list(
/area/space,
/area/mine,
/area/ruin,
/area/centcom/asteroid/nearstation,
/area/icemoon,
))
for(var/area/A in world)
if (is_type_in_typecache(A, station_areas_blacklist))
continue