Adds ability to exempt areas from unit tests on a per-map basis

This commit is contained in:
Neerti
2017-11-18 02:38:58 -05:00
parent 2a55433ca9
commit 2567e4e3d1
3 changed files with 20 additions and 1 deletions
+7 -1
View File
@@ -12,7 +12,8 @@
/area/holodeck,
/area/supply/station,
/area/mine,
/area/vacant/vacant_shop
/area/vacant/vacant_shop,
/area/turbolift
)
var/list/exempt_from_atmos = typesof(/area/maintenance,
@@ -33,6 +34,11 @@
/area/vacant/vacant_shop
)
// Some maps have areas specific to the map, so include those.
exempt_areas += using_map.unit_test_exempt_areas
exempt_from_atmos += using_map.unit_test_exempt_from_atmos
exempt_from_apc += using_map.unit_test_exempt_from_apc
for(var/area/A in world)
if(A.z == 1 && !(A.type in exempt_areas))
area_test_count++