From 07596717e9b59170a8848f77be8ae7d99f9fa289 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 3 Dec 2016 12:00:57 -0600 Subject: [PATCH] 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 --- .../crates_lockers/closets/secure/personal.dm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm index 1aeaff319f..2a32588ecb 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/personal.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/personal.dm @@ -53,4 +53,21 @@ else user << "Access Denied." else - return ..() \ No newline at end of file + 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 << "The lock appears to be broken." + return + else + registered_name = null + usr << "You successfully reset the lock." + desc = initial(desc) + add_fingerprint(usr) + else + usr << "\the [src.name] must be open!"