mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +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:
@@ -27,7 +27,7 @@
|
||||
return attack_hand(user)
|
||||
|
||||
/obj/machinery/computer/security/check_eye(var/mob/user as mob)
|
||||
if (user.stat || user.blinded || inoperable())
|
||||
if (user.stat || user.blinded || !operable())
|
||||
return -1
|
||||
if(!current_camera)
|
||||
return 0
|
||||
@@ -37,7 +37,7 @@
|
||||
return viewflag
|
||||
|
||||
/obj/machinery/computer/security/grants_equipment_vision(var/mob/user as mob)
|
||||
if(user.stat || user.blinded || inoperable())
|
||||
if(user.stat || user.blinded || !operable())
|
||||
return FALSE
|
||||
if(!current_camera)
|
||||
return FALSE
|
||||
@@ -131,7 +131,7 @@
|
||||
A.client.eye = A.eyeobj
|
||||
return 1
|
||||
|
||||
if (user.stat || user.blinded || inoperable())
|
||||
if (user.stat || user.blinded || !operable())
|
||||
return 0
|
||||
set_current(C)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
|
||||
/obj/machinery/computer/pod/process()
|
||||
if(inoperable())
|
||||
if(!operable())
|
||||
return
|
||||
if(timing)
|
||||
if(time > 0)
|
||||
|
||||
Reference in New Issue
Block a user