From cd3e0ea9e77e1a97ac20aa8213b2a8c1b0405008 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sat, 22 Oct 2011 16:44:43 +0000 Subject: [PATCH] The grant full access verb now works even if the person doesn't have an ID on them. If they don't, it will create an id and use the person's real name for the registered name and captain as the assignment. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2420 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/verbs/debug.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index cb7a417b878..2d683a0a087 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -344,7 +344,15 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that id.icon_state = "gold" id:access = get_all_accesses()+get_all_centcom_access()+get_all_syndicate_access() else - alert("Invalid ID card") + var/obj/item/weapon/card/id/id = new/obj/item/weapon/card/id(M); + log_admin("[key_name(src)] has granted [M.key] full access.") + id.icon_state = "gold" + id:access = get_all_accesses()+get_all_centcom_access()+get_all_syndicate_access() + id.registered = H.real_name + id.assignment = "Captain" + id.name = "[id.registered]'s ID Card ([id.assignment])" + H.equip_if_possible(id, H.slot_wear_id) + H.update_clothing() else alert("Invalid mob")