assorted tcomms housekeeping

split some files, merged some files, cleaned some code
removed spurious listening level toggle from relays
This commit is contained in:
Spookerton
2024-01-18 07:33:24 +00:00
parent 6d865d9859
commit 87d9ddf0bd
25 changed files with 1934 additions and 2298 deletions
@@ -193,9 +193,17 @@ var/global/list/obj/item/communicator/all_communicators = list()
// Parameters: None
// Description: Simple check to see if the exonet node is active.
/obj/item/communicator/proc/get_connection_to_tcomms()
if(node && node.on && node.allow_external_communicators)
return can_telecomm(src,node)
return 0
if (!node?.on || !node.allow_external_communicators)
return FALSE
if (is_jammed(src) || is_jammed(node))
return FALSE
var/sender_z = get_z(src)
var/receiver_z = get_z(node)
if (!sender_z || !receiver_z)
return FALSE
if (sender_z == receiver_z)
return TRUE
return sender_z in using_map.get_map_levels(receiver_z, TRUE, om_range = DEFAULT_OVERMAP_RANGE)
// Proc: process()
// Parameters: None
@@ -371,4 +379,4 @@ var/global/list/obj/item/communicator/all_communicators = list()
/obj/item/communicator/rugged
desc = "The RB-65, voted most robust communicator 2566!"
icon_state = "commrugged"
note = "Thank you for choosing the RB-65 Communicator, this is your notepad!" //Current note in the notepad function
note = "Thank you for choosing the RB-65 Communicator, this is your notepad!" //Current note in the notepad function