[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:
SkyratBot
2022-08-05 10:03:05 -07:00
committed by GitHub
co-authored by ShizCalev
parent 7186a8fdb6
commit 1a43c38873
3 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -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)