Makes Display Cases Emaggable (#16096)

* Emaggable Case

* Emag Alarm

* one space is kil

* the is kil
This commit is contained in:
Leanfrog
2021-05-29 16:13:30 -04:00
committed by GitHub
parent 64f1fd589d
commit 4e63120df4
+10 -1
View File
@@ -35,10 +35,19 @@
QDEL_NULL(showpiece)
return ..()
/obj/structure/displaycase/emag_act(mob/user)
if(!emagged)
to_chat(user, "<span class='warning'>You override the ID lock on [src].</span>")
trigger_alarm()
emagged = TRUE
/obj/structure/displaycase/examine(mob/user)
. = ..()
if(alert)
. += "<span class='notice'>Hooked up with an anti-theft system.</span>"
if(emagged)
. += "<span class='warning'>The ID lock has been shorted out.</span>"
if(showpiece)
. += "<span class='notice'>There's [showpiece] inside.</span>"
if(trophy_message)
@@ -100,7 +109,7 @@
/obj/structure/displaycase/attackby(obj/item/I, mob/user, params)
if(I.GetID() && !broken && openable)
if(allowed(user))
if(allowed(user) || emagged)
to_chat(user, "<span class='notice'>You [open ? "close":"open"] [src].</span>")
toggle_lock(user)
else