mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Fixes machine using power from the area it was created in, rather than using the area it is in (#23188)
* Update machine area when power_change() is called. * Do not attempt to unregister from null powernet * Move to wrench and update wrench_acts * Remove accidental pseudocode --------- Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
@@ -901,24 +901,7 @@
|
||||
if(using_irrigation)
|
||||
to_chat(user, "<span class='warning'>Disconnect the hoses first!</span>")
|
||||
return
|
||||
|
||||
if(!anchored && !isinspace())
|
||||
user.visible_message("[user] begins to wrench [src] into place.", "<span class='notice'>You begin to wrench [src] in place...</span>")
|
||||
if(I.use_tool(src, user, 20, volume = I.tool_volume))
|
||||
if(anchored)
|
||||
return
|
||||
anchored = TRUE
|
||||
user.visible_message("[user] wrenches [src] into place.", \
|
||||
"<span class='notice'>You wrench [src] in place.</span>")
|
||||
else if(anchored)
|
||||
user.visible_message("[user] begins to unwrench [src].", \
|
||||
"<span class='notice'>You begin to unwrench [src]...</span>")
|
||||
if(I.use_tool(src, user, 20, volume = I.tool_volume))
|
||||
if(!anchored)
|
||||
return
|
||||
anchored = FALSE
|
||||
user.visible_message("[user] unwrenches [src].", \
|
||||
"<span class='notice'>You unwrench [src].</span>")
|
||||
default_unfasten_wrench(user, I)
|
||||
|
||||
/obj/machinery/hydroponics/attack_hand(mob/user)
|
||||
if(issilicon(user)) //How does AI know what plant is?
|
||||
|
||||
Reference in New Issue
Block a user