Jump to content

Make Drying Racks Not Rely On Power.


Aligote

Recommended Posts

This has been discussed before and I am primarily motivated for the same reason. I'd like ashwalkers to be able to make leather for things like goliath cloaks. I was able to make drying racks work on lavaland by changing 

Spoiler

/obj/machinery/smartfridge/drying_rack/power_change()
    if(has_power() && anchored)
        stat &= ~NOPOWER
    else
        stat |= NOPOWER
        toggle_drying(TRUE)
    update_icon(UPDATE_OVERLAYS)

to just

Spoiler

/obj/machinery/smartfridge/drying_rack/power_change()
    if(anchored)
        stat &= ~NOPOWER

along with changing the power consumptions to 0.

I dont know which change is the primary reason it works, but it works. There was the implied assumption that the PR would be looked into, and I guess it just never was. But now the work is mostly done, we can have a drying rack that doesnt need power and allow ashwalker to produce leather as a result. I'd love to see the drip :)

Edited by Aligote
  • Like 1
Link to comment
Share on other sites

A la Cunningham's Law, here ya go.

There should be a variable on `/obj/machinery` that's called `requires_power`. You should set this to `FALSE` on the drying rack, and then remove any code on the drying rack that checks for it needing power, and after that, making sure it will always work!

Link to comment
Share on other sites

1 hour ago, DGamerL said:

There should be a variable on `/obj/machinery` that's called `requires_power`. You should set this to `FALSE` on the drying rack, and then remove any code on the drying rack that checks for it needing power, and after that, making sure it will always work!

Swapped for this solution.

Edited by Aligote
Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use