From 6d6091c0e20f8b387b42694efd30109bab596ca6 Mon Sep 17 00:00:00 2001 From: denghis1 <63977635+denghis1@users.noreply.github.com> Date: Wed, 1 Jul 2020 09:29:10 +0200 Subject: [PATCH] Added wrench_act to slot machines, so that they can be moved by the crew Added the section of code that is used on pretty much every wrenchable machinery to the slot machines, so that they can now be moved and wrenched down again. Wrench time set to 120 to make it take a tad longer than most things to unwrench/wrench. --- code/game/machinery/slotmachine.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index d0cf38a272d..bdadb1b0da9 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -20,6 +20,12 @@ account = null ui_interact(user) +/obj/machinery/slot_machine/wrench_act(mob/user, obj/item/I) + . = TRUE + if(!I.tool_use_check(user, 0)) + return + default_unfasten_wrench(user, I, 120) + /obj/machinery/slot_machine/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) ui = SSnanoui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui)