Skip to content

Commit

Permalink
[MIRROR] Fix machine frames being unwrenchable (#2883)
Browse files Browse the repository at this point in the history
Co-authored-by: SierraKomodo <[email protected]>
Co-authored-by: Lexanx <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent e12b4b4 commit e8b701a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
playsound(machine, 'sound/items/Ratchet.ogg', 50, TRUE)
if (!user.do_skilled((tool.toolspeed * 2 SECONDS), SKILL_CONSTRUCTION, machine, do_flags = DO_REPAIR_CONSTRUCT) || !user.use_sanity_check(machine, tool))
return TRUE
TRANSFER_STATE(/singleton/machine_construction/frame/unwrenched)
TRANSFER_STATE(/singleton/machine_construction/frame/wrenched)
user.visible_message(
SPAN_NOTICE("\The [user] secures \a [machine] to the floor with \a [tool]."),
SPAN_NOTICE("You secure \the [machine] to the floor with \the [tool].")
)
machine.anchored = FALSE
machine.anchored = TRUE
machine.post_anchor_change()
return TRUE

Expand Down

0 comments on commit e8b701a

Please sign in to comment.