Sprite Accent Fix (#17260)

Fixes an issue where toggleable sprites end up with both versions of their accents overlayed.
This commit is contained in:
Sparky
2023-09-07 17:03:11 +00:00
committed by GitHub
parent 3ea8f46bb9
commit 0607b2847c
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -127,9 +127,11 @@
/obj/item/update_icon()
. = ..()
if(build_from_parts || has_accents)
cut_overlays()
if(build_from_parts)
add_overlay(overlay_image(icon,"[icon_state]_[worn_overlay]", flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
if(accent_color && has_accents)
if(has_accents)
add_overlay(overlay_image(icon,"[icon_state]_acc",accent_color, RESET_COLOR))
/obj/item/device