mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +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:
@@ -32,7 +32,7 @@
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/computer/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null, force_open = TRUE)
|
||||
if(inoperable() || isNotStationLevel(z) || user.stat)
|
||||
if(!operable() || isNotStationLevel(z) || user.stat)
|
||||
user.unset_machine()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user