mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-18 14:12:20 +00:00
Farmbot can be turned off, not just on
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
data["replaces_nutriment"] = replaces_nutriment
|
data["replaces_nutriment"] = replaces_nutriment
|
||||||
data["collects_produce"] = collects_produce
|
data["collects_produce"] = collects_produce
|
||||||
data["removes_dead"] = removes_dead
|
data["removes_dead"] = removes_dead
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
@@ -83,22 +83,22 @@
|
|||||||
/mob/living/bot/farmbot/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
|
/mob/living/bot/farmbot/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state)
|
||||||
if(..())
|
if(..())
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
|
|
||||||
switch(action)
|
switch(action)
|
||||||
if("power")
|
if("power")
|
||||||
if(!access_scanner.allowed(src))
|
if(!access_scanner.allowed(usr))
|
||||||
return FALSE
|
return FALSE
|
||||||
if(on)
|
if(on)
|
||||||
turn_off()
|
turn_off()
|
||||||
else
|
else
|
||||||
turn_on()
|
turn_on()
|
||||||
. = TRUE
|
. = TRUE
|
||||||
|
|
||||||
if(locked)
|
if(locked)
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
switch(action)
|
switch(action)
|
||||||
if("water")
|
if("water")
|
||||||
waters_trays = !waters_trays
|
waters_trays = !waters_trays
|
||||||
|
|||||||
Reference in New Issue
Block a user