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 21:23:30 +00:00
committed by GitHub
parent bcc4f225f8
commit 7fb282adf0
18 changed files with 111 additions and 37 deletions
@@ -29,7 +29,7 @@
/obj/machinery/fusion_fuel_injector/process()
if(injecting)
if(inoperable())
if(!operable())
StopInjecting()
else
Inject()
@@ -95,7 +95,7 @@
harvesting.Cut()
/obj/machinery/kinetic_harvester/update_icon()
if(inoperable())
if(!operable())
icon_state = "broken"
else if(use_power >= POWER_USE_ACTIVE)
icon_state = "on"