Skip to content

Commit

Permalink
The right fix
Browse files Browse the repository at this point in the history
  • Loading branch information
i1yadobr committed Nov 3, 2024
1 parent 700c865 commit 2d9c554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -161,7 +161,7 @@
pay_with_card(I, W, user)

update_icon()
return FALSE
return TRUE

/obj/machinery/slot_machine/proc/pay_with_card(obj/item/card/id/I, obj/item/ID_container, mob/user)
if(I == ID_container || ID_container == null)
Expand Down

0 comments on commit 2d9c554

Please sign in to comment.