Fixed them! (#11090)

This commit is contained in:
Sparky
2021-01-30 14:56:30 +00:00
committed by GitHub
parent c778355006
commit 0064c4998f
2 changed files with 9 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
. = ..()
if(build_from_parts)
cut_overlays()
add_overlay(overlay_image(icon, "[icon_state]_[worn_overlay]", flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
add_overlay(overlay_image(icon, worn_overlay, flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
/obj/item/clothing/accessory/proc/get_inv_overlay()
if(!mob_overlay)
@@ -44,7 +44,7 @@
inv_overlay.color = color
if(build_from_parts)
inv_overlay.cut_overlays()
inv_overlay.add_overlay(overlay_image(I, "[icon_state]_[worn_overlay]", flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
inv_overlay.add_overlay(overlay_image(I, worn_overlay, flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
return inv_overlay
/obj/item/clothing/accessory/proc/get_mob_overlay()
@@ -61,7 +61,7 @@
mob_overlay.color = color
if(build_from_parts)
mob_overlay.cut_overlays()
mob_overlay.add_overlay(overlay_image(I, "[icon_state]_[worn_overlay]", flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
mob_overlay.add_overlay(overlay_image(I, worn_overlay, flags=RESET_COLOR)) //add the overlay w/o coloration of the original sprite
mob_overlay.appearance_flags = RESET_ALPHA
return mob_overlay