mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-14 09:27:45 +01:00
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:
@@ -204,7 +204,7 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
|
||||
holographic_mobs -= P
|
||||
P.derez()
|
||||
|
||||
if(inoperable())
|
||||
if(!operable())
|
||||
return
|
||||
if(active)
|
||||
use_power_oneoff(item_power_usage * (holographic_objs.len + holographic_mobs.len))
|
||||
|
||||
Reference in New Issue
Block a user