Merge pull request #7446 from VOREStation/aro-bsbp

Tweak bluespace backpack radio
This commit is contained in:
Aronai Sieyes
2020-04-26 11:30:34 -04:00
committed by GitHub
3 changed files with 9 additions and 18 deletions

View File

@@ -125,7 +125,7 @@ var/const/EXP_FREQ = 1361
var/const/MED_I_FREQ = 1485
var/const/SEC_I_FREQ = 1475
var/const/TALON_FREQ = 1481 //VOREStation Add
var/const/TALON_FREQ = 1363 //VOREStation Add
var/list/radiochannels = list(
"Common" = PUB_FREQ,

View File

@@ -355,7 +355,7 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
for(var/obj/item/device/radio/R in forced_radios)
//Cursory check to ensure they are 'on' and stuff
if(R.receive_range(display_freq, list(0)))
if(R.receive_range(display_freq, list(0)) > -1)
radios |= R
// --- Broadcast only to intercom devices ---

View File

@@ -132,22 +132,13 @@
return -1
if(!listening)
return -1
if(is_jammed(src))
return -1
if(!on)
return -1
if (!freq) //recieved on main frequency
if (!listening)
return -1
else
var/accept = (freq==frequency && listening)
if (!accept)
for (var/ch_name in channels)
var/datum/radio_frequency/RF = secure_radio_connections[ch_name]
if (RF && RF.frequency==freq && (channels[ch_name]&FREQ_LISTENING))
accept = 1
break
if (!accept)
if(!freq)
return -1
//Only listen on main freq
if(freq == frequency)
return canhear_range
else
return -1