Telecomms considers sector range, away site radio fixes (#14014)

This commit is contained in:
Doxxmedearly
2022-06-01 15:36:52 +02:00
committed by GitHub
parent 34ae88aa29
commit eadb271aaa
21 changed files with 202 additions and 110 deletions
@@ -671,10 +671,10 @@
syndie = TRUE
ks1type = /obj/item/device/encryptionkey/bluespace
//Ghostrole headset
/obj/item/device/radio/headset/ship
icon_state = "syn_headset"
ks1type = /obj/item/device/encryptionkey/ship
syndie = TRUE
/obj/item/device/radio/headset/binary
origin_tech = list(TECH_ILLEGAL = 3)
+10 -2
View File
@@ -359,6 +359,12 @@ var/global/list/default_medbay_channels = list(
var/turf/position = get_turf(src)
var/obj/effect/overmap/visitable/sector
if(current_map.use_overmap)
var/my_sector = map_sectors["[position.z]"]
if(istype(my_sector, /obj/effect/overmap/visitable))
sector = my_sector
//#### Tagging the signal with all appropriate identity values ####//
// ||-- The mob's name identity --||
@@ -446,7 +452,8 @@ var/global/list/default_medbay_channels = list(
"reject" = 0, // if nonzero, the signal will not be accepted by any broadcasting machinery
"level" = position.z, // The source's z level
"language" = speaking,
"verb" = verb
"verb" = verb,
"sector" = sector
)
signal.frequency = connection.frequency // Quick frequency set
@@ -508,7 +515,8 @@ var/global/list/default_medbay_channels = list(
"reject" = 0,
"level" = position.z,
"language" = speaking,
"verb" = verb
"verb" = verb,
"sector" = sector
)
signal.frequency = connection.frequency // Quick frequency set