From 8ae6b40c31a947133baf35b6af1f2d27e0b1b9fd Mon Sep 17 00:00:00 2001 From: HeyBanditoz <7574664+HeyBanditoz@users.noreply.github.com> Date: Sun, 27 Oct 2024 03:03:33 +0000 Subject: [PATCH] [MIRROR] Fix AI access --- code/game/objects/items/weapons/cards_ids.dm | 8 ++++++++ code/modules/mob/living/silicon/ai/ai.dm | 2 ++ 2 files changed, 10 insertions(+) diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index be391bad2ef24..e3b15af5a9b7c 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -480,6 +480,14 @@ var/global/const/NO_EMAG_ACT = -50 access = GLOB.using_map.synth_access.Copy() ..() +/obj/item/card/id/synthetic/ai + name = "\improper AI ID" + desc = "All-access module for the AI." + +/obj/item/card/id/synthetic/ai/New() + ..() + access = get_all_station_access() + access_synth + /obj/item/card/id/centcom name = "\improper CentCom. ID" desc = "An ID straight from Cent. Com." diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index fa38f46b4221f..6a4095f65c5eb 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -114,6 +114,8 @@ var/global/list/ai_verbs_default = list( var/default_ai_icon = /singleton/ai_icon/blue var/static/list/custom_ai_icons_by_ckey_and_name + idcard = /obj/item/card/id/synthetic/ai + /mob/living/silicon/ai/proc/add_ai_verbs() src.verbs |= ai_verbs_default src.verbs -= /mob/living/verb/ghost