mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 11:31:51 +00:00
20 lines
794 B
Plaintext
20 lines
794 B
Plaintext
// This artificially splits a ZAS zone, useful if you wish to prevent massive super-zones which can cause lag.
|
|
/obj/effect/zone_divider
|
|
name = "zone divider"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x3"
|
|
invisibility = 101 //nope, can't see this
|
|
anchored = 1
|
|
density = 0
|
|
opacity = 0
|
|
|
|
/obj/effect/zone_divider/CanZASPass(turf/T, is_zone)
|
|
// Special case to prevent us from being part of a zone during the first air master tick.
|
|
// We must merge ourselves into a zone on next tick. This will cause a bit of lag on
|
|
// startup, but it can't really be helped you know?
|
|
if(air_master && air_master.current_cycle == 0)
|
|
spawn(1)
|
|
air_master.mark_for_update(get_turf(src))
|
|
return ATMOS_PASS_NO
|
|
return is_zone ? ATMOS_PASS_NO : ATMOS_PASS_YES // Anything except zones can pass
|