Curator starts with the key to the display cases instead of being the key (#26869)

* Moves the curators ability to use display cases from an intrinsic to an extrinsic key that the curator starts with.
This commit is contained in:
Incoming5643
2017-05-04 19:15:26 -04:00
committed by Leo
parent a823a1b698
commit c67f412d9f
2 changed files with 19 additions and 4 deletions
+16 -2
View File
@@ -256,6 +256,8 @@
var/trophy_message = ""
var/placer_key = ""
var/added_roundstart = TRUE
var/is_locked = TRUE
alert = TRUE
integrity_failure = 0
@@ -278,8 +280,16 @@
if(!user.Adjacent(src)) //no TK museology
return
if(!(user.mind && user.mind.assigned_role == "Curator"))
to_chat(user, "<span class='danger'>You're not sure how to work this. Maybe you should ask the curator for help.</span>")
if(user.is_holding_item_of_type(/obj/item/key/displaycase))
if(added_roundstart)
is_locked = !is_locked
to_chat(user, "You [!is_locked ? "un" : ""]lock the case.")
else
to_chat(user, "<span class='danger'>The lock is stuck shut!</span>")
return
if(is_locked)
to_chat(user, "<span class='danger'>The case is shut tight with an old fashioned physical lock. Maybe you should ask the curator for the key?</span>")
return
if(!added_roundstart)
@@ -336,6 +346,10 @@
else
..()
/obj/item/key/displaycase
name = "display case key"
desc = "The key to the curator's display cases."
/obj/item/showpiece_dummy
name = "Cheap replica"