mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Makes some alterations to the APC CI (#23166)
* woohoo * Update code/modules/unit_tests/areas_apcs.dm
This commit is contained in:
@@ -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)]")
|
||||
|
||||
Reference in New Issue
Block a user