mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
Testing Wires, Coordinates & Fixed Science Wall Area
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user