mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
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:
@@ -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])")
|
||||
|
||||
Reference in New Issue
Block a user