Fix IFF swapping destroying away ship radios (#15420)

This commit is contained in:
Wildkins
2022-12-25 10:17:24 -05:00
committed by GitHub
parent 4ea7715975
commit 5e9fa83d9d
8 changed files with 55 additions and 10 deletions

View File

@@ -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()