mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-16 10:27:14 +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:
@@ -113,7 +113,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
|
||||
return FALSE
|
||||
|
||||
var/flags = issilicon(user) ? USE_ALLOW_NON_ADJACENT : 0
|
||||
if (use_check_and_message(user, flags) || user.blinded || inoperable() || !linked)
|
||||
if (use_check_and_message(user, flags) || user.blinded || !operable() || !linked)
|
||||
return -1
|
||||
else
|
||||
return SEE_THRU
|
||||
|
||||
Reference in New Issue
Block a user