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 1/2] 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) From 71501580dda4a3f1b8f57855aec6fc8ff6e3923c Mon Sep 17 00:00:00 2001 From: denghis1 <63977635+denghis1@users.noreply.github.com> Date: Wed, 1 Jul 2020 13:20:49 +0200 Subject: [PATCH 2/2] Timer set to use default value Timer for wrenching changed from 120 the use the proc default instead of 20, this brings it in line with most other wrenchable objects --- code/game/machinery/slotmachine.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm index bdadb1b0da9..5952108b6a9 100644 --- a/code/game/machinery/slotmachine.dm +++ b/code/game/machinery/slotmachine.dm @@ -24,7 +24,7 @@ . = TRUE if(!I.tool_use_check(user, 0)) return - default_unfasten_wrench(user, I, 120) + default_unfasten_wrench(user, I) /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)