mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user