mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user