mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
Sprite Accent Fix (#17260)
Fixes an issue where toggleable sprites end up with both versions of their accents overlayed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user