the ID lock doesn't even lock to your ID whats the

This commit is contained in:
Jerry Wester
2023-01-06 00:27:07 -07:00
committed by KrissKr0ss
parent 682d60710d
commit 908ac03b6d
2 changed files with 0 additions and 20 deletions

View File

@@ -10,7 +10,6 @@
data["malfunctioning"] = malfunctioning
data["open"] = open
data["active"] = active
data["locked"] = locked
data["complexity"] = complexity
data["selected_module"] = selected_module?.name
data["wearer_name"] = wearer ? (wearer.get_authentification_name("Unknown") || "Unknown") : "No Occupant"
@@ -56,17 +55,10 @@
. = ..()
if(.)
return
if((!allowed(usr) || !ispAI(usr)) && locked)
balloon_alert(usr, "insufficient access!")
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
return
if(malfunctioning && prob(75))
balloon_alert(usr, "button malfunctions!")
return
switch(action)
if("lock")
locked = !locked
balloon_alert(usr, "[locked ? "locked" : "unlocked"]!")
if("activate")
toggle_activate(usr)
if("select")

View File

@@ -459,7 +459,6 @@ const ParametersSection = (props, context) => {
const {
active,
malfunctioning,
locked,
open,
selected_module,
complexity,
@@ -489,17 +488,6 @@ const ParametersSection = (props, context) => {
}>
{status}
</LabeledList.Item>
<LabeledList.Item
label="ID Lock"
buttons={
<Button
icon={locked ? 'lock-open' : 'lock'}
content={locked ? 'Unlock' : 'Lock'}
onClick={() => act('lock')}
/>
}>
{locked ? 'Locked' : 'Unlocked'}
</LabeledList.Item>
<LabeledList.Item label="Cover">
{open ? 'Open' : 'Closed'}
</LabeledList.Item>