[MIRROR] disconnect devices on RD console dismantle (#8750)

Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-08-09 22:35:07 -07:00
committed by GitHub
parent 95e7011a42
commit 2e435afec5

View File

@@ -147,6 +147,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)