From fe75eaab75cc9178543053851200c367b96168dc Mon Sep 17 00:00:00 2001 From: ilyadobr <155672646+i1yadobr@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:22:10 +0200 Subject: [PATCH] fix(slot_machine): the ability to unanchored it from the floor #12948 --- code/game/machinery/slot_machine.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/slot_machine.dm b/code/game/machinery/slot_machine.dm index 55c35811837..75f1d89e77d 100644 --- a/code/game/machinery/slot_machine.dm +++ b/code/game/machinery/slot_machine.dm @@ -125,13 +125,13 @@ update_icon() /obj/machinery/slot_machine/attackby(obj/item/W, mob/user) - if(pay(W, user)) - return if((obj_flags & OBJ_FLAG_ANCHORABLE) && isWrench(W)) if(wrench_floor_bolts(user)) update_standing_icon() power_change() return + if(pay(W, user)) + return else if(W.force >= 10) user.visible_message(SPAN("danger", "\The [src] has been [pick(W.attack_verb)] with [W] by [user]!")) user.setClickCooldown(W.update_attack_cooldown())