Files
vgstation13/code/modules/events/link_with_centcomm.dm
madmanmartian 6b346c92b0 Makes event population done via a function
Adds event whitelists and event blacklists per-map. so you can make it so that certain events can not fire on a map. PoC is blizzards on all maps, and the radiation storm on snaxi (as requested by Plosky)
2019-08-31 01:41:00 +01:00

21 lines
519 B
Plaintext

/datum/event/unlink_from_centcomm
endWhen = 300
/datum/event/unlink_from_centcomm/can_start()
return 10
/datum/event/unlink_from_centcomm/start()
unlink_from_centcomm()
/datum/event/unlink_from_centcomm/end()
link_to_centcomm()
proc/link_to_centcomm()
if(!map.linked_to_centcomm)
map.linked_to_centcomm = 1
command_alert(/datum/command_alert/command_link_restored)
proc/unlink_from_centcomm()
if(map.linked_to_centcomm)
command_alert(/datum/command_alert/command_link_lost)
map.linked_to_centcomm = 0