Ability to reset personal lockers (#76)

* Ability to reset personal lockers

Gives the player the option to reset the ownership of lockers if and
ONLY IF the locker is open

Addition
-reset the ownership of a personal locker

* Ability to reset lockers FIX

The recommand parts have been added to the code.
Thank you very much Cactus for looking at it

* Grammar Fix

Added a \ to the beginning of The for grammar reasons

* \The changed to \the

\The changed to \the
This commit is contained in:
Matthew
2016-12-03 12:00:57 -06:00
committed by TalkingCactus
parent c9c5690d78
commit 07596717e9
@@ -53,4 +53,21 @@
else
user << "<span class='danger'>Access Denied.</span>"
else
return ..()
return ..()
/obj/structure/closet/secure_closet/personal/verb/verb_resetlock()//personal locker ownership reset.
set src in oview(1)
set category = "Object"
set name = "Reset Lock"
if(opened)
if(broken)
usr << "<span class='danger'>The lock appears to be broken.</span>"
return
else
registered_name = null
usr << "<span class='danger'>You successfully reset the lock.</span>"
desc = initial(desc)
add_fingerprint(usr)
else
usr << "<span class='danger'>\the [src.name] must be open!</span>"