[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 <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2021-03-06 23:10:43 +00:00
committed by GitHub
co-authored by Timberpoes
parent a278e7cb1a
commit ccaea71d25
+2 -1
View File
@@ -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()