From cc54e4d078f30496384b40e876a3aeb7bb3e2102 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Tue, 6 Aug 2024 23:28:37 +0200 Subject: [PATCH] disconnect devices on RD console dismanlte --- code/modules/research/rdconsole.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index bd85d9e0106..b2b2e4129a6 100755 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -140,6 +140,15 @@ won't update every console in existence) but it's more of a hassle to do. Also, SStgui.update_uis(src) return +/obj/machinery/computer/rdconsole/dismantle() + if(linked_destroy) + linked_destroy.linked_console = null + if(linked_lathe) + linked_lathe.linked_console = null + if(linked_imprinter) + linked_imprinter.linked_console = null + ..() + /obj/machinery/computer/rdconsole/emp_act(var/remaining_charges, var/mob/user) if(!emagged) playsound(src, 'sound/effects/sparks4.ogg', 75, 1)