From 84b53569455d6ca579db82cafbaa3ccaebed5987 Mon Sep 17 00:00:00 2001 From: aramix273 <27755442+aramix273@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:59:42 +0300 Subject: [PATCH] fix remote UI, comm value and arg --- code/modules/research/nanites/nanite_programs/suppression.dm | 4 ++-- code/modules/research/nanites/nanite_remote.dm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/research/nanites/nanite_programs/suppression.dm b/code/modules/research/nanites/nanite_programs/suppression.dm index 21e7cb7245dea..b62f87af25218 100644 --- a/code/modules/research/nanites/nanite_programs/suppression.dm +++ b/code/modules/research/nanites/nanite_programs/suppression.dm @@ -123,9 +123,9 @@ var/datum/nanite_extra_setting/comm_code = extra_settings[NES_COMM_CODE] if(!activated || !comm_code) return - if(signal_comm_code == comm_code) + if(signal_comm_code == comm_code.get_value()) host_mob.investigate_log("'s [name] nanite program was messaged by [comm_source] with comm code [signal_comm_code] and message '[comm_message]'.", INVESTIGATE_NANITES) - trigger(comm_message) + trigger(comm_message=comm_message) /datum/nanite_program/comm/speech name = "Forced Speech" diff --git a/code/modules/research/nanites/nanite_remote.dm b/code/modules/research/nanites/nanite_remote.dm index 1e36f2e78b61f..6b3232a140315 100644 --- a/code/modules/research/nanites/nanite_remote.dm +++ b/code/modules/research/nanites/nanite_remote.dm @@ -216,7 +216,8 @@ return data /obj/item/nanite_remote/comm/ui_act(action, params) - if(..()) + . = ..() + if(.) return switch(action) if("set_message")