From 872e927cc7776589589a567b332d9fca3b1ade68 Mon Sep 17 00:00:00 2001 From: "Mr. 27" <45323883+Dutch-VanDerLinde@users.noreply.github.com> Date: Wed, 19 Jun 2024 20:09:44 -0400 Subject: [PATCH] Hide moth antenna and lizard frills with hardsuit helmets, fix lizard snouts not being hidden (#29214) * inital * Update ClothingSystem.cs * Update helmets.yml --- .../Clothing/EntitySystems/ClothingSystem.cs | 2 +- .../Entities/Clothing/Head/base_clothinghead.yml | 4 ++++ .../Entities/Clothing/Head/hardsuit-helmets.yml | 3 +++ Resources/Prototypes/Entities/Clothing/Head/hats.yml | 2 ++ .../Prototypes/Entities/Clothing/Head/helmets.yml | 12 ++++++++++++ .../Prototypes/Entities/Clothing/Head/hoods.yml | 6 ++++++ Resources/Prototypes/Entities/Mobs/Species/moth.yml | 2 ++ .../Prototypes/Entities/Mobs/Species/reptilian.yml | 4 ++++ 8 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs b/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs index bdcb2c8204..381edc68ba 100644 --- a/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs +++ b/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs @@ -87,7 +87,7 @@ public abstract class ClothingSystem : EntitySystem foreach (HumanoidVisualLayers layer in layers) { if (!appearanceLayers.Contains(layer)) - break; + continue; InventorySystem.InventorySlotEnumerator enumerator = _invSystem.GetSlotEnumerator(equipee); diff --git a/Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml b/Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml index 866fe962ca..07c3e12dd8 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml @@ -143,6 +143,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: entity abstract: true @@ -187,6 +189,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: entity abstract: true diff --git a/Resources/Prototypes/Entities/Clothing/Head/hardsuit-helmets.yml b/Resources/Prototypes/Entities/Clothing/Head/hardsuit-helmets.yml index 0c660e09b8..3c50319836 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hardsuit-helmets.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hardsuit-helmets.yml @@ -18,7 +18,10 @@ sprite: Clothing/Head/Hardsuits/basic.rsi - type: HideLayerClothing slots: + - Hair - Snout + - HeadTop + - HeadSide #Atmospherics Hardsuit - type: entity diff --git a/Resources/Prototypes/Entities/Clothing/Head/hats.yml b/Resources/Prototypes/Entities/Clothing/Head/hats.yml index 462b1cb889..e2786f70f0 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hats.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hats.yml @@ -392,6 +392,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: entity parent: ClothingHeadHatWizardBase diff --git a/Resources/Prototypes/Entities/Clothing/Head/helmets.yml b/Resources/Prototypes/Entities/Clothing/Head/helmets.yml index d585518ece..a01d6fae51 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/helmets.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/helmets.yml @@ -22,6 +22,10 @@ - type: Tag tags: - WhitelistChameleon + - type: HideLayerClothing + slots: + - HeadTop + - HeadSide #Mercenary Helmet - type: entity @@ -114,6 +118,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide #Janitorial Bombsuit Helmet - type: entity @@ -168,6 +174,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide #Templar Helmet - type: entity @@ -234,6 +242,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide #Atmos Fire Helmet - type: entity @@ -263,6 +273,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: BreathMask #Chitinous Helmet diff --git a/Resources/Prototypes/Entities/Clothing/Head/hoods.yml b/Resources/Prototypes/Entities/Clothing/Head/hoods.yml index db18706912..4dec89e75a 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hoods.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hoods.yml @@ -18,6 +18,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: entity parent: ClothingHeadHatHoodBioGeneral @@ -158,6 +160,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide - type: entity parent: ClothingHeadBase @@ -240,6 +244,8 @@ slots: - Hair - Snout + - HeadTop + - HeadSide #Winter Coat Hoods - type: entity diff --git a/Resources/Prototypes/Entities/Mobs/Species/moth.yml b/Resources/Prototypes/Entities/Mobs/Species/moth.yml index f2a0194b7a..f6fde849ef 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/moth.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/moth.yml @@ -7,6 +7,8 @@ components: - type: HumanoidAppearance species: Moth + hideLayersOnEquip: + - HeadTop - type: Hunger - type: Thirst - type: Icon diff --git a/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml b/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml index f099ffdc6a..ad543620cf 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml @@ -7,6 +7,10 @@ components: - type: HumanoidAppearance species: Reptilian + hideLayersOnEquip: + - Snout + - HeadTop + - HeadSide - type: Hunger - type: Puller needsHands: false