Fix ExaminableHunger spelling (#35309)

Fix ExaminableHunger spelling mistake
This commit is contained in:
MilenVolf
2025-02-19 17:23:53 +03:00
committed by GitHub
parent bc1c82ac60
commit cc18ba72a6
5 changed files with 21 additions and 21 deletions

View File

@@ -0,0 +1,31 @@
using Content.Shared.Nutrition.EntitySystems;
using Robust.Shared.GameStates;
namespace Content.Shared.Nutrition.Components;
/// <summary>
/// Adds text to the entity's description box based on its current hunger threshold.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(ExaminableHungerSystem))]
public sealed partial class ExaminableHungerComponent : Component
{
/// <summary>
/// Dictionary of hunger thresholds to LocIds of the messages to display.
/// </summary>
[DataField]
public Dictionary<HungerThreshold, LocId> Descriptions = new()
{
{ HungerThreshold.Overfed, "examinable-hunger-component-examine-overfed"},
{ HungerThreshold.Okay, "examinable-hunger-component-examine-okay"},
{ HungerThreshold.Peckish, "examinable-hunger-component-examine-peckish"},
{ HungerThreshold.Starving, "examinable-hunger-component-examine-starving"},
{ HungerThreshold.Dead, "examinable-hunger-component-examine-starving"}
};
/// <summary>
/// LocId of a fallback message to display if the entity has no <see cref="HungerComponent"/>
/// or does not have a value in <see cref="Descriptions"/> for the current threshold.
/// </summary>
public LocId NoHungerDescription = "examinable-hunger-component-examine-none";
}