mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +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:
@@ -38,6 +38,14 @@
|
||||
|
||||
ui_interact(user)
|
||||
|
||||
/obj/machinery/suspension_gen/operable(additional_flags)
|
||||
if(stat & (BROKEN|additional_flags))
|
||||
return FALSE
|
||||
if(!cell.charge)
|
||||
return FALSE
|
||||
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/suspension_gen/attackby(obj/item/attacking_item, mob/user)
|
||||
if(attacking_item.isscrewdriver())
|
||||
if(!open)
|
||||
|
||||
Reference in New Issue
Block a user