mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 23:42:27 +00:00
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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user