Adds CI to prevent areas on station without APCs (#22515)

* areas apcs

* oops

* okay lets try this!

* these too

* a lot more changes

* cmon
This commit is contained in:
Contrabang
2023-10-27 13:11:10 -04:00
committed by GitHub
parent 308a38e23e
commit d7d68d126f
9 changed files with 6426 additions and 6286 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -55546,7 +55546,7 @@
network = list("SS13","MiniSat")
},
/turf/space,
/area/station/aisat)
/area/station/aisat/hall)
"dqM" = (
/obj/machinery/light{
dir = 8
@@ -55577,7 +55577,7 @@
network = list("SS13","MiniSat")
},
/turf/space,
/area/station/aisat)
/area/station/aisat/hall)
"dqT" = (
/obj/machinery/firealarm{
dir = 8;
@@ -30,6 +30,9 @@
icon_state = "engibreak"
sound_environment = SOUND_AREA_SMALL_ENCLOSED
/area/station/engineering/break_room/secondary
name = "\improper Secondary Engineering Foyer"
/area/station/engineering/equipmentstorage
name = "Engineering Equipment Storage"
icon_state = "engilocker"
@@ -121,6 +121,12 @@
/area/station/maintenance/library
name = "Abandoned Library"
icon_state = "library"
apc_starts_off = TRUE
/area/station/maintenance/theatre
name = "\improper Abandoned Theatre"
icon_state = "Theatre"
sound_environment = SOUND_AREA_WOODFLOOR
/area/station/maintenance/spacehut
name = "Space Hut"
@@ -45,6 +45,7 @@
/area/station/service/clown/secret
name = "\improper Top Secret Clown HQ"
requires_power = FALSE
/area/station/service/mime
name = "\improper Mime's Office"
+1
View File
@@ -4,6 +4,7 @@
#ifdef UNIT_TESTS
#include "aicard_icons.dm"
#include "announcements.dm"
#include "areas_apcs.dm"
#include "component_tests.dm"
#include "config_sanity.dm"
#include "crafting_lists.dm"
+12
View File
@@ -0,0 +1,12 @@
/datum/unit_test/area_apcs
/// Sometimes, areas may have power, or not. We dont really care about these areas.
var/list/optional_areas = list(/area/station/science/toxins/test, /area/station/maintenance/electrical_shop)
/datum/unit_test/area_apcs/Run()
for(var/area/station/A in SSmapping.existing_station_areas)
if(A.there_can_be_many || A.apc_starts_off || !A.requires_power)
continue
if(is_type_in_list(A, optional_areas))
continue
if(!(length(A.apc) == 1))
Fail("Area [A] has [length(A.apc)] apcs, instead of 1.")