From dd15b11a6c7be62cfa41801f03719ed56444b8eb Mon Sep 17 00:00:00 2001 From: ilyadobr <155672646+i1yadobr@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:41:43 +0300 Subject: [PATCH] fix(rig): incorrect display of helmet sprites #12894 --- code/modules/clothing/head.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/clothing/head.dm b/code/modules/clothing/head.dm index a49b0d2a9ae..52c60989229 100644 --- a/code/modules/clothing/head.dm +++ b/code/modules/clothing/head.dm @@ -37,6 +37,10 @@ var/cache_key = "[light_overlay]_[species_name]" if(on && light_overlay_cache[cache_key] && slot == slot_head_str) ret.AddOverlays(light_overlay_cache[cache_key]) + if(item_state_slots && item_state_slots[slot]) + ret.icon_state = item_state_slots[slot] + else + ret.icon_state = icon_state return ret /obj/item/clothing/head/attack_self(mob/user)