mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 12:29:23 +01:00
Hardsuit Access Disabling (#15803)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user