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
This commit is contained in:
baloh.matevz
2011-10-22 16:44:43 +00:00
parent d090ec651d
commit cd3e0ea9e7

View File

@@ -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")