Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distress beacon response messages now have a chance of being static #5757

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion code/datums/emergency_calls/emergency_call.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
var/mob_min = 3
var/dispatch_message = "An encrypted signal has been received from a nearby vessel. Stand by." //Msg to display when starting
var/arrival_message = "" //Msg to display about when the shuttle arrives
/// Probability that the message will be replaced with static. - prob(chance_hidden)
var/chance_hidden = 20
/// Message to display when distress beacon is hidden
var/static_message = "**STATIC** %$#&!- *!%^#$$ ^%%$# +_!@* &*%$## **STATIC** &%$#^*! @!*%$# ^%&$#@ *%&$#^ **STATIC** --SIGNAL LOST"
var/objectives //Txt of objectives to display to joined. Todo: make this into objective notes
var/objective_info //For additional info in the objectives txt
var/probability = 0
Expand Down Expand Up @@ -305,7 +309,10 @@

candidates = list()
if(arrival_message && announce_incoming)
marine_announcement(arrival_message, "Intercepted Transmission:")
if(prob(chance_hidden))
marine_announcement(static_message, "Intercepted Transmission:")
else
marine_announcement(arrival_message, "Intercepted Transmission:")

/datum/emergency_call/proc/add_candidate(mob/M)
if(!M.client || (M.mind && (M.mind in candidates)) || istype(M, /mob/living/carbon/xenomorph))
Expand Down
Loading