mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-28 02:21:53 +00:00
## About The Pull Request - As the size of the announcement proc has grown over the past few PRs, did a pass over them for readability and consistency - Include the arg names for coders unfamiliar with the new announcement format - Replaced leftover hardcoded Central Command text with the command name proc, so all announcements reflect the command name if changed by an admin - Replaced hard coded emergency shuttle timer text with the actual timeleft vars, so it's correct if the timers are changed for any reason - Darkens the dark mode blue/red headers to be more red less pink, while staying in accessibility standards - Adds a lower profile grey colour for automated non-Central Command announcements ## Changelog 🆑 LT3 code: Emergency shuttle announcements no longer use hardcoded values code: Central Command announcements now correctly use its new name when changed spellcheck: Consistency pass on event announcements /🆑
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
/datum/round_event_control/processor_overload
|
|
name = "Processor Overload"
|
|
typepath = /datum/round_event/processor_overload
|
|
weight = 15
|
|
min_players = 20
|
|
category = EVENT_CATEGORY_ENGINEERING
|
|
description = "Emps the telecomm processors, scrambling radio speech. Might blow up a few."
|
|
|
|
/datum/round_event/processor_overload
|
|
announce_when = 1
|
|
|
|
/datum/round_event/processor_overload/announce(fake)
|
|
var/alert = pick("Exospheric bubble inbound. Processor overload is likely. Please contact you*%xp25)`6cq-BZZT",
|
|
"Exospheric bubble inbound. Processor overload is likel*1eta;c5;'1v¬-BZZZT",
|
|
"Exospheric bubble inbound. Processor ov#MCi46:5.;@63-BZZZZT",
|
|
"Exospheric bubble inbo'Fz\\k55_@-BZZZZZT",
|
|
"Exospheri:%£ QCbyj^j</.3-BZZZZZZT",
|
|
"!!hy%;f3l7e,<$^-BZZZZZZZT",
|
|
)
|
|
|
|
for(var/mob/living/silicon/ai/A in GLOB.ai_list)
|
|
//AIs are always aware of processor overload
|
|
to_chat(A, "<br>[span_warning("<b>[alert]</b>")]<br>")
|
|
|
|
// Announce most of the time, but leave a little gap so people don't know
|
|
// whether it's, say, a tesla zapping tcomms, or some selective
|
|
// modification of the tcomms bus
|
|
if(prob(80) || fake)
|
|
priority_announce(alert, "Anomaly Alert")
|
|
|
|
|
|
/datum/round_event/processor_overload/start()
|
|
for(var/obj/machinery/telecomms/processor/P in GLOB.telecomms_list)
|
|
if(prob(10))
|
|
announce_to_ghosts(P)
|
|
// Damage the surrounding area to indicate that it popped
|
|
explosion(P, light_impact_range = 2, explosion_cause = src)
|
|
// Only a level 1 explosion actually damages the machine
|
|
// at all
|
|
SSexplosions.high_mov_atom += P
|
|
else
|
|
P.emp_act(EMP_HEAVY)
|