fixes chameleon card reset issues and makes nuke op trim have a hud icon (#68879)

* partial fix

* outfits now update ids
This commit is contained in:
Fikou
2022-08-01 16:46:39 -04:00
committed by GitHub
parent 7a394f4b74
commit 499f9463cd
3 changed files with 10 additions and 5 deletions
+3
View File
@@ -456,6 +456,9 @@ SUBSYSTEM_DEF(id_access)
id_card.trim_state_override = null
id_card.trim_assignment_override = null
id_card.sechud_icon_state_override = null
id_card.department_color_override = null
id_card.department_state_override = null
id_card.subdepartment_color_override = null
/**
* Adds the accesses associated with a trim to an ID card.
+6 -5
View File
@@ -40,6 +40,12 @@
trim_state = "trim_syndicate"
department_color = COLOR_SYNDIE_RED
subdepartment_color = COLOR_SYNDIE_RED
sechud_icon_state = SECHUD_SYNDICATE
/// Trim for Chameleon ID cards. Many outfits, nuke ops and some corpses hold Chameleon ID cards.
/datum/id_trim/chameleon/operative/nuke_leader
assignment = "Syndicate Operative Leader"
access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER)
/// Trim for Chameleon ID cards. Many outfits, nuke ops and some corpses hold Chameleon ID cards.
/datum/id_trim/chameleon/operative/clown
@@ -50,8 +56,3 @@
/datum/id_trim/chameleon/operative/clown_leader
assignment = "Syndicate Entertainment Operative Leader"
access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER)
/// Trim for Chameleon ID cards. Many outfits, nuke ops and some corpses hold Chameleon ID cards.
/datum/id_trim/chameleon/operative/nuke_leader
assignment = "Syndicate Operative Leader"
access = list(ACCESS_MAINT_TUNNELS, ACCESS_SYNDICATE, ACCESS_SYNDICATE_LEADER)
+1
View File
@@ -200,6 +200,7 @@
if(id_trim)
if(!SSid_access.apply_trim_to_card(id_card, id_trim))
WARNING("Unable to apply trim [id_trim] to [id_card] in outfit [name].")
H.sec_hud_set_ID()
if(suit_store)
EQUIP_OUTFIT_ITEM(suit_store, ITEM_SLOT_SUITSTORE)