mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
fix bapping rd console with disks (#29447)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user