From ccaea71d25da276ea26b7d68a4ae3fc4480928f6 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 7 Mar 2021 00:10:43 +0100 Subject: [PATCH] [MIRROR] Fix oversight where chameleon/agent ID cards lacked and wiped their own trims and access (#3951) * Fix oversight where chameleon/agent ID cards lacked and wiped their own trims and access (#57441) * Fix oversight where chameleon/agent ID cards lacked and wiped their own trims and access Co-authored-by: Timberpoes --- code/game/objects/items/cards_ids.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 752631014a6..7113b285765 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -969,6 +969,7 @@ /obj/item/card/id/advanced/chameleon name = "agent card" desc = "A highly advanced chameleon ID card. Touch this card on another ID card to choose which accesses to copy." + trim = /datum/id_trim/chameleon wildcard_slots = WILDCARD_LIMIT_CHAMELEON /// Have we set a custom name and job assignment, or will we use what we're given when we chameleon change? @@ -1151,7 +1152,7 @@ if(forged) registered_name = initial(registered_name) assignment = initial(assignment) - SSid_access.remove_trim_from_card(src) + SSid_access.remove_trim_from_chameleon_card(src) log_game("[key_name(user)] has reset \the [initial(name)] named \"[src]\" to default.") update_label() update_icon()