Skip to content

Commit

Permalink
Distress beacon response message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Watchson committed Feb 19, 2024
1 parent 6c9c669 commit 25cda50
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit 25cda50

Please sign in to comment.