Fixes APC Interface locks
This commit is contained in:
@@ -863,7 +863,7 @@
|
|||||||
if (H && !H.stealthmode && H.toggled)
|
if (H && !H.stealthmode && H.toggled)
|
||||||
abilitiesavail = TRUE
|
abilitiesavail = TRUE
|
||||||
var/list/data = list(
|
var/list/data = list(
|
||||||
"locked" = locked && !(integration_cog && is_servant_of_ratvar(user)) && !area.hasSiliconAccessInArea(user, PRIVILEDGES_SILICON|PRIVILEDGES_DRONE),
|
"locked" = locked,
|
||||||
"lock_nightshift" = nightshift_requires_auth,
|
"lock_nightshift" = nightshift_requires_auth,
|
||||||
"failTime" = failure_timer,
|
"failTime" = failure_timer,
|
||||||
"isOperating" = operating,
|
"isOperating" = operating,
|
||||||
@@ -981,7 +981,7 @@
|
|||||||
failure_timer = 0
|
failure_timer = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
update()
|
update()
|
||||||
if (action == "hijack" && can_use(usr, 1)) //don't need auth for hijack button
|
if(action == "hijack" && can_use(usr, 1)) //don't need auth for hijack button
|
||||||
hijack(usr)
|
hijack(usr)
|
||||||
return
|
return
|
||||||
var/authorized = (!locked || area.hasSiliconAccessInArea(usr, PRIVILEDGES_SILICON|PRIVILEDGES_DRONE) || (integration_cog && (is_servant_of_ratvar(usr))))
|
var/authorized = (!locked || area.hasSiliconAccessInArea(usr, PRIVILEDGES_SILICON|PRIVILEDGES_DRONE) || (integration_cog && (is_servant_of_ratvar(usr))))
|
||||||
|
|||||||
Reference in New Issue
Block a user