mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-22 04:36:53 +01:00
assorted tcomms housekeeping
split some files, merged some files, cleaned some code removed spurious listening level toggle from relays
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user