Prevents wormholes from spawning in syndicate shuttles (#17818)

This commit is contained in:
Ling
2023-02-10 23:58:08 +01:00
committed by GitHub
parent b66d0720bb
commit 919a2686b6
2 changed files with 10 additions and 2 deletions

View File

@@ -188,10 +188,12 @@
/area/shuttle/syndicate_scout
name = "Syndicate Scout"
blob_allowed = FALSE
noteleport = TRUE
/area/shuttle/caravan
blob_allowed = FALSE
requires_power = TRUE
noteleport = TRUE
/area/shuttle/caravan/syndicate1
name = "Syndicate Fighter"

View File

@@ -23,8 +23,14 @@ GLOBAL_LIST_EMPTY(all_wormholes) // So we can pick wormholes to teleport to
/datum/round_event/wormholes/start()
for(var/turf/open/floor/T in world)
if(is_station_level(T.z))
pick_turfs += T
if(!is_station_level(T.z))
continue
var/area/area = get_area(T)
if (!area || area.noteleport)
continue
pick_turfs += T
for(var/i = 1, i <= number_of_wormholes, i++)
var/turf/T = pick(pick_turfs)