Files
Paradise/code/defines/procs/radio_procs.dm
AffectedArc07 b34e8fa301 [READY] CI now bans files with the same name (#20195)
* CI now bans files with the same name

* Part 1

* Warriorstar python tweaks

* Part Deux

* Fix unticked

* fix
2023-02-04 16:33:41 -06:00

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