Makes Drying Rack Operational without Power. (#22620)

* Makes Drying Racks operational without power.

* Removes power requirments for drying rack

* Removes power requirments for drying rack

* Can this work

* requires_power = FALSE

* Update code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* References to power removed

* Removes drying rack off

* Removes Drying Rack Off

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Aligotess13
2023-10-12 17:06:23 +01:00
committed by GitHub
co-authored by DGamerL
parent d8d68975cb
commit ebb7f54f0f
2 changed files with 1 additions and 16 deletions
@@ -809,8 +809,7 @@
desc = "A wooden contraption, used to dry plant products, food and leather."
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "drying_rack"
idle_power_consumption = 5
active_power_consumption = 200
requires_power = FALSE
can_dry = TRUE
visible_contents = FALSE
light_range_on = null
@@ -836,14 +835,6 @@
/obj/machinery/smartfridge/drying_rack/RefreshParts()
return
/obj/machinery/smartfridge/drying_rack/power_change()
if(has_power() && anchored)
stat &= ~NOPOWER
else
stat |= NOPOWER
toggle_drying(TRUE)
update_icon(UPDATE_OVERLAYS)
/obj/machinery/smartfridge/drying_rack/screwdriver_act(mob/living/user, obj/item/I)
return
@@ -866,13 +857,9 @@
switch(action)
if("drying")
drying = !drying
change_power_mode(drying ? ACTIVE_POWER_USE : IDLE_POWER_USE)
update_icon(UPDATE_OVERLAYS)
/obj/machinery/smartfridge/drying_rack/update_overlays()
if(stat & NOPOWER)
. += "drying_rack_off"
return
if(drying)
. += "drying_rack_drying"
if(length(contents))
@@ -900,10 +887,8 @@
/obj/machinery/smartfridge/drying_rack/proc/toggle_drying(forceoff)
if(drying || forceoff)
drying = FALSE
change_power_mode(IDLE_POWER_USE)
else
drying = TRUE
change_power_mode(ACTIVE_POWER_USE)
update_icon(UPDATE_OVERLAYS)
/**
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB