Fixes loadout specific polychromic hoodies

This commit is contained in:
Blue Wildrose
2020-12-31 03:42:29 -07:00
parent 8f8ab6ff13
commit 0e5b2c60ee
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -698,6 +698,8 @@ SUBSYSTEM_DEF(job)
if(polychromic && istype(polychromic))
var/list/polychromic_entry = polychromic.colors_by_atom[I]
if(polychromic_entry)
if(polychromic.suits_with_helmet_typecache[I.type]) //is this one of those toggleable hood/helmet things?
polychromic.connect_helmet(I,i[LOADOUT_COLOR])
polychromic.colors_by_atom[I] = i[LOADOUT_COLOR]
I.update_icon()
else