From b808b94e998afcc0adc65fe5ca55412ae8a92e62 Mon Sep 17 00:00:00 2001
From: Arturlang <24881678+Arturlang@users.noreply.github.com>
Date: Sat, 26 Jul 2025 08:23:01 +0300
Subject: [PATCH] Fix hoods not hiding anything (#92285)
## About The Pull Request
Fixes the issue with toggleable clothing not properly considering
obscured inv_flags slots
this is the issue related to this bug, but this solution is moreso a
hack than anything so i'm not closing the issue.
https://github.com/tgstation/tgstation/issues/85028
potential better fix at
https://github.com/DaedalusDock/daedalusdock/pull/826
## Why It's Good For The Game
ew
good
## Changelog
:cl:
fix: clothing with hood now correctly hides slots based on inv_flags
/:cl:
---
code/datums/components/toggle_attached_clothing.dm | 1 +
1 file changed, 1 insertion(+)
diff --git a/code/datums/components/toggle_attached_clothing.dm b/code/datums/components/toggle_attached_clothing.dm
index a251fd0e38a..87af014396e 100644
--- a/code/datums/components/toggle_attached_clothing.dm
+++ b/code/datums/components/toggle_attached_clothing.dm
@@ -140,6 +140,7 @@
parent_gear.icon_state = "[initial(parent_gear.post_init_icon_state) || initial(parent_gear.icon_state)][parent_icon_state_suffix]"
parent_gear.worn_icon_state = parent_gear.icon_state
parent_gear.update_slot_icon()
+ wearer.update_obscured_slots(deployable.flags_inv)
wearer.update_mob_action_buttons()
/// Undeploy gear if it moves slots somehow