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
-8
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")