mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-25 01:31:58 +00:00
* CI now bans files with the same name * Part 1 * Warriorstar python tweaks * Part Deux * Fix unticked * fix
26 lines
652 B
Plaintext
26 lines
652 B
Plaintext
#define TELECOMMS_RECEPTION_NONE 0
|
|
#define TELECOMMS_RECEPTION_SENDER 1
|
|
#define TELECOMMS_RECEPTION_RECEIVER 2
|
|
#define TELECOMMS_RECEPTION_BOTH 3
|
|
|
|
/proc/get_frequency_name(display_freq)
|
|
var/freq_text
|
|
|
|
// the name of the channel
|
|
switch(display_freq)
|
|
if(SYND_FREQ)
|
|
freq_text = "#unkn"
|
|
if(SYNDTEAM_FREQ)
|
|
freq_text = "#unid"
|
|
else
|
|
for(var/channel in SSradio.radiochannels)
|
|
if(SSradio.radiochannels[channel] == display_freq)
|
|
freq_text = channel
|
|
break
|
|
|
|
// --- If the frequency has not been assigned a name, just use the frequency as the name ---
|
|
if(!freq_text)
|
|
freq_text = format_frequency(display_freq)
|
|
|
|
return freq_text
|