mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[MIRROR] Power failure event will now only provide an announcement if the previous power failure has ended [MDB IGNORE] (#15419)
* Power failure event will now only provide an announcement if the previous power failure has ended (#68943) Power failure event will now only provide a message if a previous power failure has ended * Power failure event will now only provide an announcement if the previous power failure has ended Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
startWhen = 1
|
||||
|
||||
/datum/round_event/grid_check/announce(fake)
|
||||
priority_announce("Abnormal activity detected in [station_name()]'s powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.", "Critical Power Failure", ANNOUNCER_POWEROFF)
|
||||
if(fake || (GLOB.power_failure_message_cooldown > world.time))
|
||||
priority_announce("Abnormal activity detected in [station_name()]'s powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.", "Critical Power Failure", ANNOUNCER_POWEROFF)
|
||||
|
||||
/datum/round_event/grid_check/start()
|
||||
power_fail(30, 120)
|
||||
|
||||
Reference in New Issue
Block a user