[MIRROR] Unit tests powernets to make sure the whole station is connected. [MDB IGNORE] (#16503)

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

* Unit tests powernets to make sure the whole station is connected.

* fixes cable tests for blueshift and raptor

* single cable misplacement

* hard map reset

* hec

* tramstation armory stray cable

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Paxilmaniac <paxilmaniac@gmail.com>
Co-authored-by: Tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-09-29 07:24:37 +02:00
committed by GitHub
parent 8721fd64c5
commit b61a3f981d
38 changed files with 2237 additions and 2366 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

@@ -375,7 +375,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