mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
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:
+288
-301
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+5400
-5249
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.")
|
||||
Reference in New Issue
Block a user