mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-14 12:51:10 +03:00
* 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"
25 lines
721 B
C#
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",
|
|
};
|
|
}
|