Fix snow machines (#23621)

* Fix snow machines

Fixes #23620 : snowmachine were let on loose while they can only be turned on when wrenched in the floor.

* Remove doublon on anchor message

* smoll fix

oopsie

---------

Co-authored-by: Pierre-Louis <hernandezpierrelouis@protonmail.com>
This commit is contained in:
Pierre-Louis
2023-12-23 22:16:37 -05:00
committed by GitHub
co-authored by Pierre-Louis
parent c6f55533bd
commit 3fc823ba3f
+2 -3
View File
@@ -56,9 +56,8 @@
. = TRUE
if(!default_unfasten_wrench(user, I, 0))
return
anchored = !anchored
to_chat(user, "<span class='notice'>You [anchored ? "tighten" : "loosen"] [src]'s wheels.</span>")
turn_on_or_off(FALSE)
if(!anchored)
turn_on_or_off(FALSE)
/obj/machinery/snow_machine/process()
if(power_used_this_cycle)