mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Adds Missing Access Checks to Airlock Equipment (#21148)
Fixes https://github.com/Aurorastation/Aurora.3/issues/13378 Airlock controllers and Sensors now also check if the user has access --------- Signed-off-by: Ben <91219575+Ben10083@users.noreply.github.com> Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com> Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
co-authored by
Ben10083
Matt Atlas
parent
30214f671f
commit
b9d1343ade
@@ -36,7 +36,7 @@
|
||||
to_chat(user, SPAN_NOTICE("You unlock \the [src]!"))
|
||||
return
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("Access Denied"))
|
||||
to_chat(user, SPAN_WARNING("Access denied"))
|
||||
else if(istype(attacking_item, /obj/item/melee/energy/blade))
|
||||
if(emag_act(INFINITY, user, attacking_item, "The locker has been sliced open by [user] with an energy blade!", "You hear metal being sliced and sparks flying."))
|
||||
var/obj/item/melee/energy/blade/blade = attacking_item
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
/obj/CanUseTopic(var/mob/user, var/datum/ui_state/state)
|
||||
if(user.CanUseObjTopic(src))
|
||||
return ..()
|
||||
to_chat(user, SPAN_DANGER("[icon2html(src, user)]Access Denied!"))
|
||||
to_chat(user, SPAN_DANGER("[icon2html(src, user)]Access denied!"))
|
||||
return STATUS_CLOSE
|
||||
|
||||
/mob/living/silicon/CanUseObjTopic(var/obj/O)
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
SPAN_NOTICE("You [locked ? null : "un"]lock \the [src]."))
|
||||
update_icon()
|
||||
else if(!silent)
|
||||
to_chat(user, SPAN_NOTICE("Access Denied."))
|
||||
to_chat(user, SPAN_NOTICE("Access denied."))
|
||||
|
||||
/obj/structure/closet/AltClick(mob/user)
|
||||
. = ..()
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
registered_name = I.registered_name
|
||||
desc = "Owned by [I.registered_name]."
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("Access Denied"))
|
||||
to_chat(user, SPAN_WARNING("Access denied"))
|
||||
else if(istype(attacking_item, /obj/item/melee/energy/blade))
|
||||
var/obj/item/melee/energy/blade/blade = attacking_item
|
||||
if(emag_act(INFINITY, user, "The locker has been sliced open by [user] with \an [blade]!", "You hear metal being sliced and sparks flying."))
|
||||
@@ -76,7 +76,7 @@
|
||||
playsound(loc, 'sound/weapons/blade.ogg', 50, 1)
|
||||
playsound(loc, /singleton/sound_category/spark_sound, 50, 1)
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("Access Denied"))
|
||||
to_chat(user, SPAN_WARNING("Access denied"))
|
||||
return
|
||||
|
||||
/obj/structure/closet/secure_closet/personal/emag_act(var/remaining_charges, var/mob/user, var/visual_feedback, var/audible_feedback)
|
||||
|
||||
Reference in New Issue
Block a user