mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-09 00:42:34 +00:00
-Makes a lot of unsuitable events excluded from faking. Some of them could do with reworking to make them function, like the infestation and prison breaks, but for now i just had to exclude them -Adds an In-character/descriptive name, used for the announcement apologising for the mistake -Fixes an issue where using debug Trigger Event verb would fill the events list with empty severe events and cause runtime errors
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
/datum/event/communications_blackout
|
|
no_fake = 1
|
|
|
|
/datum/event/communications_blackout/announce()
|
|
var/alert = pick( "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00)`5vc-BZZT", \
|
|
"Ionospheric anomalies detected. Temporary telecommunication failu*3mga;b4;'1v¬-BZZZT", \
|
|
"Ionospheric anomalies detected. Temporary telec#MCi46:5.;@63-BZZZZT", \
|
|
"Ionospheric anomalies dete'fZ\\kg5_0-BZZZZZT", \
|
|
"Ionospheri:%£ MCayj^j<.3-BZZZZZZT", \
|
|
"#4nd%;f4y6,>£%-BZZZZZZZT")
|
|
|
|
for(var/mob/living/silicon/ai/A in player_list) //AIs are always aware of communication blackouts.
|
|
A << "<br>"
|
|
A << "<span class='warning'><b>[alert]</b></span>"
|
|
A << "<br>"
|
|
|
|
if(prob(30)) //most of the time, we don't want an announcement, so as to allow AIs to fake blackouts.
|
|
command_announcement.Announce(alert, new_sound = sound('sound/misc/interference.ogg', volume=25))
|
|
return
|
|
return 1
|
|
|
|
|
|
/datum/event/communications_blackout/start()
|
|
for(var/obj/machinery/telecomms/T in telecomms_list)
|
|
T.emp_act(1)
|