Skip to content

Commit

Permalink
Merge pull request Civ13#2909 from HaultyAnonie/drill-fxi-2
Browse files Browse the repository at this point in the history
Fixes wrenching on structures. (Industrial Drill Fix.) #2
  • Loading branch information
savethetreez authored May 31, 2024
2 parents d144d21 + aa2f2d8 commit eda2e14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/objects/structures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
if (T != src && T.anchored)
to_chat(user, SPAN_WARNING("You can't anchor \the [src] here, there's already \a [T] anchored here."))
return
if (do_after(user, 15, src))
playsound(loc, 'sound/items/Ratchet.ogg', 100, TRUE)
to_chat(user, (src.anchored ? SPAN_NOTICE("You unfasten \the [src] from the floor.") : SPAN_NOTICE("You secure \the [src] to the floor.")))
src.anchored = !src.anchored
return
if (do_after(user, 15, src))
playsound(loc, 'sound/items/Ratchet.ogg', 100, TRUE)
to_chat(user, (src.anchored ? SPAN_NOTICE("You unfasten \the [src] from the floor.") : SPAN_NOTICE("You secure \the [src] to the floor.")))
src.anchored = !src.anchored
return
else if (istype(O, /obj/item/weapon/hammer) && !not_disassemblable)
playsound(loc, 'sound/items/Screwdriver.ogg', 75, TRUE)
to_chat(user, SPAN_NOTICE("You begin dismantling \the [src]."))
Expand Down

0 comments on commit eda2e14

Please sign in to comment.