adds radio access to borgs by default

This commit is contained in:
shellspeed1
2022-09-17 02:20:36 -07:00
parent b554906511
commit 8d9804e953
2 changed files with 19 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
item_state = "walkietalkie"
desc = "A basic handheld radio that communicates with local telecommunication networks."
dog_fashion = /datum/dog_fashion/back
var/list/extra_channels = list() //Allows indivudal channels, used for borgs
flags_1 = CONDUCT_1 | HEAR_1
slot_flags = ITEM_SLOT_BELT
@@ -69,6 +70,11 @@
if(keyslot.independent)
independent = TRUE
if(extra_channels)
for(var/ch_name in extra_channels)
if(!(ch_name in channels))
channels[ch_name] = extra_channels[ch_name]
for(var/ch_name in channels)
secure_radio_connections[ch_name] = add_radio(src, GLOB.radiochannels[ch_name])