Delta-v/Content.Server/Nutrition/EntitySystems
paige404 2e7f01b99e
Fix broken layer hiding on clothes with multiple equipment slots (#34080)
* Fix broken layer hiding on clothes with multiple equipment slots

* Refactor ToggleVisualLayers, HideLayerClothingComponent, and ClothingComponent to allow more
precise layer hide behavior and more CPU efficient layer toggling.

* Adjust HumanoidAppearaceSystem to track which slots are hiding a given layer (e.g. gas mask and welding mask)
Add documentation
Change gas masks to use the new HideLayerClothingComponent structure as an example of its usage

* Fix the delayed snout bug

* Misc cleanup

* Make `bool permanent` implicit from SlotFlags

any non-permanent visibility toggle with `SlotFlags.None` isn't supported with how its set up. And similarly, the slot flags argument does nothing if permanent = true. So IMO it makes more sense to infer it from a nullable arg.

* Split into separate system

Too much pasta

* Remove (hopefully unnecessary) refresh

* Fisk mask networking

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* Keep old behaviour, use clearer names?

I'm just guessing at what this was meant to do

* english

* Separate slot name & flag

* dirty = true

* fix comment

* Improved SetLayerVisibility with dirtying logic suggested by @ElectroJr

* Only set mask toggled if DisableOnFold is true

* FoldableClothingSystem fixes

* fix bandana state

* Better comment

---------

Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
2025-03-21 00:30:47 +11:00
..
AnimalHusbandrySystem.cs Add a system for modifying entity names without causing conflicts (#27863) 2024-06-16 15:38:53 -04:00
CreamPieSystem.cs Refactor audio system to send collection IDs over the network (#33610) 2025-02-23 23:14:56 +11:00
DrinkSystem.cs Fix borgs being able to drink from buckets and spray bottles. (#32964) 2024-12-23 13:54:18 -06:00
FatExtractorSystem.cs Seperate EMAG into EMAG and Authentication Disruptor (#34337) 2025-01-29 23:05:47 -05:00
FlavorProfileSystem.cs Revert 'Revert 'Solution Entities'' (#23168) 2023-12-29 08:47:43 -04:00
FoodSequenceSystem.cs Fix dev server crashes caused by putting pills in drinks, depositing spesos, making burgers (#33431) 2025-02-13 15:31:38 -05:00
FoodSystem.cs Fix force-feeding Loc strings not using target's gender (#34276) 2025-01-12 15:33:53 +01:00
IngestionBlockerSystem.cs Fix broken layer hiding on clothes with multiple equipment slots (#34080) 2025-03-21 00:30:47 +11:00
SliceableFoodSystem.cs Replace instances of SolutionContainerSystem with SharedSolutionContainerSystem (#30084) 2024-09-02 13:26:04 +02:00
SmokingSystem.Cigar.cs Decouple interactions from hands, cleanup old events, add new fears (#28393) 2024-05-31 13:26:19 -07:00
SmokingSystem.SmokingPipe.cs Update SmokingSystem.SmokingPipe.cs to not use Component.Owner (#29967) 2024-07-13 14:06:54 +10:00
SmokingSystem.Vape.cs Seperate EMAG into EMAG and Authentication Disruptor (#34337) 2025-01-29 23:05:47 -05:00
SmokingSystem.cs Replace instances of SolutionContainerSystem with SharedSolutionContainerSystem (#30084) 2024-09-02 13:26:04 +02:00
TrashOnSolutionEmptySystem.cs Replace instances of SolutionContainerSystem with SharedSolutionContainerSystem (#30084) 2024-09-02 13:26:04 +02:00
UtensilSystem.cs Fix utensils not being thrown away (#33326) 2024-11-15 21:39:19 -06:00