Refactored the machinery operable procs (#19274)

Refactored the machinery operable procs into a single one, DMDoc'd, SDMM
marked, made more readable.
Fixed suspension field generator not being able to be used as it was not
checking the power cell for operability.

Fixes #19249
This commit is contained in:
Fluffy
2024-05-31 23:23:30 +02:00
committed by GitHub
parent bcc4f225f8
commit 7fb282adf0
18 changed files with 111 additions and 37 deletions
@@ -96,7 +96,7 @@
/obj/machinery/atmospherics/binary/oxyregenerator/process()
. = ..()
if((inoperable()) || !use_power)
if((!operable()) || !use_power)
return
var/power_draw = -1