CI now bans nearspace that is not on turf/space (#22263)

* nearspace now fails if the turf is not space

* uhh, forgot airless platings. Those are fine too.

* yeah, put the name down too

* first round of fixes

* cerestation too

* code changes

* oops double space error

* delta fixes?

* fixes

* fuck, uh, keep it but make it airless

* there we go. All fixed

* uhhh, now it works?

* this is my guess
This commit is contained in:
Contrabang
2023-09-13 15:48:55 -04:00
committed by GitHub
parent 80234bead8
commit e28a57798d
4 changed files with 86 additions and 85 deletions
+15
View File
@@ -109,3 +109,18 @@
/datum/map_per_tile_test/structures_in_farspace_checker/CheckTile(turf/T)
if(T.loc.type == /area/space && locate(/obj/structure) in T.contents)
Fail(T, "tile contains at least one structure found in non-near space area")
/datum/map_per_tile_test/nearspace_checker
var/allowed_turfs = list(/turf/space,
/turf/simulated/floor/plating/airless,
/turf/simulated/floor/plasteel/airless,
/turf/simulated/wall
)
/datum/map_per_tile_test/nearspace_checker/New()
..()
allowed_turfs = typecacheof(allowed_turfs)
/datum/map_per_tile_test/nearspace_checker/CheckTile(turf/T)
if(T.loc.type == /area/space/nearstation && !is_type_in_list(T, allowed_turfs))
Fail(T, "nearspace area contains a non-space turf: [T], ([T.type])")