Allow silicons to properly use interface lock UI.

This commit is contained in:
Funce
2018-03-05 11:48:40 +13:00
parent fc1b024e73
commit 27d3ccbe10
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -769,6 +769,7 @@
data["totalLoad"] = round(lastused_equip + lastused_light + lastused_environ)
data["coverLocked"] = coverlocked
data["siliconUser"] = istype(user, /mob/living/silicon)
data["siliconLock"] = locked
data["malfStatus"] = get_malf_status(user)
var/powerChannels[0]
+1 -1
View File
@@ -4,7 +4,7 @@
Interface Lock:
</div>
<div class="itemContentFull">
{{:helper.link('Engaged', 'lock', {'toggleaccess' : 1}, data.locked ? 'selected' : null)}}{{:helper.link('Disengaged', 'unlock', {'toggleaccess' : 1}, data.malfStatus >= 2 ? 'linkOff' : (data.locked ? null : 'selected'))}}
{{:helper.link('Engaged', 'lock', {'toggleaccess' : 1}, data.siliconLock ? 'selected' : null)}}{{:helper.link('Disengaged', 'unlock', {'toggleaccess' : 1}, data.malfStatus >= 2 ? 'linkOff' : (data.siliconLock ? null : 'selected'))}}
</div>
<div class="clearBoth"></div>
{{else}}