mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Unit tests powernets to make sure the whole station is connected. (#70090)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user