[NO GBP] Fixes hat stabilizer ignoring clothing worn_y_offset (#87851)

## About The Pull Request

Closes #87487

![image](https://github.com/user-attachments/assets/d7b501e2-b026-4254-bbd5-919a3e18259b)

## Changelog
🆑
fix: Fixed hat stabilizer ignoring clothing worn_y_offset
/🆑
This commit is contained in:
SmArtKar
2024-11-12 17:12:57 +01:00
committed by GitHub
parent 9035fd710a
commit 2e19e1fedc
+3 -1
View File
@@ -44,11 +44,13 @@
return
if(attached_hat)
var/mutable_appearance/worn_overlay = attached_hat.build_worn_icon(default_layer = ABOVE_BODY_FRONT_HEAD_LAYER-0.1, default_icon_file = 'icons/mob/clothing/head/default.dmi')
worn_overlay.pixel_y = pixel_y_offset
worn_overlay.pixel_y = pixel_y_offset + attached_hat.worn_y_offset
overlays += worn_overlay
/datum/component/hat_stabilizer/proc/on_update_overlays(atom/movable/source, list/overlays)
SIGNAL_HANDLER
if (isnull(attached_hat))
return
var/mutable_appearance/worn_overlay = use_worn_icon ? attached_hat.build_worn_icon(default_layer = ABOVE_OBJ_LAYER, default_icon_file = 'icons/mob/clothing/head/default.dmi') : mutable_appearance(attached_hat, layer = ABOVE_OBJ_LAYER)
worn_overlay.pixel_y = pixel_y_offset
overlays += worn_overlay