Testing Wires, Coordinates & Fixed Science Wall Area

This commit is contained in:
ItsSelis
2022-07-02 21:02:13 +02:00
parent eba33dfeaf
commit 9dbb6fdd66
3 changed files with 14 additions and 15 deletions
+7 -6
View File
@@ -47,17 +47,16 @@
var/area_good = 1
var/bad_msg = "--------------- [A.name]([A.type])"
if(isnull(A.apc) && !(A.type in exempt_from_apc))
log_unit_test("[bad_msg] lacks an APC.")
log_unit_test("[bad_msg] lacks an APC. (X[A.x]|Y[A.y]) - Z[A.z])")
area_good = 0
if(!A.air_scrub_info.len && !(A.type in exempt_from_atmos))
log_unit_test("[bad_msg] lacks an Air scrubber.")
log_unit_test("[bad_msg] lacks an Air scrubber. (X[A.x]|Y[A.y]) - (Z[A.z]")
area_good = 0
if(!A.air_vent_info.len && !(A.type in exempt_from_atmos))
log_unit_test("[bad_msg] lacks an Air vent.")
log_unit_test("[bad_msg] lacks an Air vent. (X[A.x]|Y[A.y]) - (Z[A.z]")
area_good = 0
if(!area_good)
@@ -71,7 +70,7 @@
return 1
/datum/unit_test/wire_test
name = "MAP: Cable Test Z level 1"
name = "MAP: Cable Test (Defined Z-Levels)"
/datum/unit_test/wire_test/start_test()
var/wire_test_count = 0
@@ -81,11 +80,13 @@
var/list/cable_turfs = list()
var/list/dirs_checked = list()
var/list/zs_to_test = using_map.unit_test_z_levels || list(1) //Either you set it, or you just get z1
for(C in world)
T = null
T = get_turf(C)
if(T && T.z == 1)
if(T && (T.z in zs_to_test))
cable_turfs |= get_turf(C)
for(T in cable_turfs)