CatStation/Content.Shared/Nutrition/Components/FlavorProfileComponent.cs
Tayrtahn ee26556753
Validate FlavorProfileComponent.Flavors (#44090)
* Validate FlavorProfileComponent.Flavors

* No need to skip invalid prototypes now

* Fix misc invalid ids

* Add a FlavorPrototype for cotton

* "tastes like cottons" -> "tastes like cotton"
2026-05-26 16:16:02 +00:00

25 lines
721 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Nutrition.Components;
[RegisterComponent, NetworkedComponent]
public sealed partial class FlavorProfileComponent : Component
{
/// <summary>
/// Localized string containing the base flavor of this entity.
/// </summary>
[DataField]
public HashSet<ProtoId<FlavorPrototype>> Flavors { get; private set; } = new();
/// <summary>
/// Reagent IDs to ignore when processing this flavor profile. Defaults to nutriment.
/// </summary>
[DataField]
public HashSet<string> IgnoreReagents { get; private set; } = new()
{
"Nutriment",
"Vitamin",
"Protein",
};
}