mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 02:01:22 +00:00
[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:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user