Hardsuit Access Disabling (#15803)

This commit is contained in:
Geeves
2023-02-15 13:27:36 +02:00
committed by GitHub
parent 083805de6c
commit cf5e57046d
4 changed files with 10 additions and 4 deletions
@@ -182,7 +182,7 @@
to_chat(user, SPAN_WARNING("The suit cannot function while the wearer is prone."))
return FALSE
if(holder.security_check_enabled && !holder.check_suit_access(user))
if(holder.security_check_enabled && holder.locked && !holder.check_suit_access(user))
to_chat(user, SPAN_DANGER("Access denied."))
return FALSE
+1 -1
View File
@@ -569,7 +569,7 @@
/obj/item/rig/proc/check_suit_access(var/mob/living/carbon/human/user)
if(!security_check_enabled)
if(!security_check_enabled || !locked)
return 1
if(istype(user))
@@ -22,7 +22,7 @@
to_chat(user, "<span class='danger'>\The [src] doesn't seem to have a locking mechanism.</span>")
return
if(security_check_enabled && !src.allowed(user))
if(security_check_enabled && locked && !src.allowed(user))
to_chat(user, "<span class='danger'>Access denied.</span>")
return
@@ -229,4 +229,4 @@
if(MODULE_SPECIAL)
return "special"
if(MODULE_VAURCA)
return "vaurca"
return "vaurca"