Makes some alterations to the APC CI (#23166)

* woohoo

* Update code/modules/unit_tests/areas_apcs.dm
This commit is contained in:
Contrabang
2023-11-12 16:00:00 -05:00
committed by GitHub
parent 48d7b00a0d
commit 9cd84512a0
+7 -2
View File
@@ -8,5 +8,10 @@
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.")
if(length(A.apc) == 0)
Fail("Area [A.type] has [length(A.apc)] apcs, instead of 1.")
else if(length(A.apc) > 1)
var/list/locations = list()
for(var/atom/probably_an_apc as anything in A.apc)
locations += "([probably_an_apc.x], [probably_an_apc.y], [probably_an_apc.z])"
Fail("Area [A.type] has [length(A.apc)] apcs, instead of 1. APCs are located at [english_list(locations)]")