Skip to content

Commit

Permalink
fix(slot_machine): the ability to unanchored it from the floor
Browse files Browse the repository at this point in the history
  • Loading branch information
i1yadobr authored Nov 7, 2024
1 parent b9b799a commit fe75eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/slot_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit fe75eaa

Please sign in to comment.