mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
the ID lock doesn't even lock to your ID whats the
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user