fix bapping rd console with disks (#29447)

This commit is contained in:
warriorstar-orion
2025-05-27 20:55:24 +00:00
committed by GitHub
parent 5a298513fc
commit 75c9f0d972
+4 -3
View File
@@ -182,17 +182,18 @@ won't update every console in existence) but it's more of a hassle to do. Also,
/obj/machinery/computer/rdconsole/item_interaction(mob/living/user, obj/item/used, list/modifiers)
//Loading a disk into it.
if(istype(used, /obj/item/disk))
. = ITEM_INTERACT_COMPLETE
if(t_disk || d_disk)
to_chat(user, "A disk is already loaded into the machine.")
return ITEM_INTERACT_COMPLETE
return
if(istype(used, /obj/item/disk/tech_disk)) t_disk = used
else if(istype(used, /obj/item/disk/design_disk)) d_disk = used
else
to_chat(user, "<span class='danger'>Machine cannot accept disks in that format.</span>")
return ITEM_INTERACT_COMPLETE
return
if(!user.drop_item())
return ITEM_INTERACT_COMPLETE
return
used.loc = src
to_chat(user, "<span class='notice'>You add the disk to the machine!</span>")
else if(!(linked_analyzer && linked_analyzer.busy) && !(linked_lathe && linked_lathe.busy) && !(linked_imprinter && linked_imprinter.busy))