mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
Fix IFF swapping destroying away ship radios (#15420)
This commit is contained in:
@@ -34,8 +34,12 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
var/obj/machinery/leviathan_safeguard/levi_safeguard
|
||||
var/obj/machinery/gravity_generator/main/gravity_generator
|
||||
|
||||
var/comms_support = FALSE // Whether ghostroles attached to this overmap object spawn with comms
|
||||
var/comms_name = "shipboard" // Snowflake name to apply to comms equipment ("shipboard radio headset", "intercom (shipboard)", "shipboard telecommunications mainframe"), etc.
|
||||
/// Whether ghostroles attached to this overmap object spawn with comms
|
||||
var/comms_support = FALSE
|
||||
/// Snowflake name to apply to comms equipment ("shipboard radio headset", "intercom (shipboard)", "shipboard telecommunications mainframe"), etc.
|
||||
var/comms_name = "shipboard"
|
||||
/// Whether away ship comms have access to the common channel / PUB_FREQ
|
||||
var/use_common = FALSE
|
||||
|
||||
/obj/effect/overmap/visitable/Initialize()
|
||||
. = ..()
|
||||
@@ -158,6 +162,8 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
|
||||
return
|
||||
if(obfuscated)
|
||||
return
|
||||
if(comms_support)
|
||||
update_away_freq(name, get_real_name())
|
||||
name = get_real_name()
|
||||
|
||||
/obj/effect/overmap/visitable/proc/get_real_name()
|
||||
|
||||
Reference in New Issue
Block a user