Fix ExaminableHunger spelling (#35309)
Fix ExaminableHunger spelling mistake
This commit is contained in:
@@ -7,8 +7,8 @@ namespace Content.Shared.Nutrition.Components;
|
|||||||
/// Adds text to the entity's description box based on its current hunger threshold.
|
/// Adds text to the entity's description box based on its current hunger threshold.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent, NetworkedComponent]
|
[RegisterComponent, NetworkedComponent]
|
||||||
[Access(typeof(ExamineableHungerSystem))]
|
[Access(typeof(ExaminableHungerSystem))]
|
||||||
public sealed partial class ExamineableHungerComponent : Component
|
public sealed partial class ExaminableHungerComponent : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dictionary of hunger thresholds to LocIds of the messages to display.
|
/// Dictionary of hunger thresholds to LocIds of the messages to display.
|
||||||
@@ -16,16 +16,16 @@ public sealed partial class ExamineableHungerComponent : Component
|
|||||||
[DataField]
|
[DataField]
|
||||||
public Dictionary<HungerThreshold, LocId> Descriptions = new()
|
public Dictionary<HungerThreshold, LocId> Descriptions = new()
|
||||||
{
|
{
|
||||||
{ HungerThreshold.Overfed, "examineable-hunger-component-examine-overfed"},
|
{ HungerThreshold.Overfed, "examinable-hunger-component-examine-overfed"},
|
||||||
{ HungerThreshold.Okay, "examineable-hunger-component-examine-okay"},
|
{ HungerThreshold.Okay, "examinable-hunger-component-examine-okay"},
|
||||||
{ HungerThreshold.Peckish, "examineable-hunger-component-examine-peckish"},
|
{ HungerThreshold.Peckish, "examinable-hunger-component-examine-peckish"},
|
||||||
{ HungerThreshold.Starving, "examineable-hunger-component-examine-starving"},
|
{ HungerThreshold.Starving, "examinable-hunger-component-examine-starving"},
|
||||||
{ HungerThreshold.Dead, "examineable-hunger-component-examine-starving"}
|
{ HungerThreshold.Dead, "examinable-hunger-component-examine-starving"}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// LocId of a fallback message to display if the entity has no <see cref="HungerComponent"/>
|
/// 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.
|
/// or does not have a value in <see cref="Descriptions"/> for the current threshold.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public LocId NoHungerDescription = "examineable-hunger-component-examine-none";
|
public LocId NoHungerDescription = "examinable-hunger-component-examine-none";
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,8 @@ using Content.Shared.Nutrition.Components;
|
|||||||
|
|
||||||
namespace Content.Shared.Nutrition.EntitySystems;
|
namespace Content.Shared.Nutrition.EntitySystems;
|
||||||
|
|
||||||
/// <inheritdoc cref="ExamineableHungerComponent"/>
|
/// <inheritdoc cref="ExaminableHungerComponent"/>
|
||||||
public sealed class ExamineableHungerSystem : EntitySystem
|
public sealed class ExaminableHungerSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly HungerSystem _hunger = default!;
|
[Dependency] private readonly HungerSystem _hunger = default!;
|
||||||
private EntityQuery<HungerComponent> _hungerQuery;
|
private EntityQuery<HungerComponent> _hungerQuery;
|
||||||
@@ -16,14 +16,14 @@ public sealed class ExamineableHungerSystem : EntitySystem
|
|||||||
|
|
||||||
_hungerQuery = GetEntityQuery<HungerComponent>();
|
_hungerQuery = GetEntityQuery<HungerComponent>();
|
||||||
|
|
||||||
SubscribeLocalEvent<ExamineableHungerComponent, ExaminedEvent>(OnExamine);
|
SubscribeLocalEvent<ExaminableHungerComponent, ExaminedEvent>(OnExamine);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Defines the text provided on examine.
|
/// Defines the text provided on examine.
|
||||||
/// Changes depending on the amount of hunger the target has.
|
/// Changes depending on the amount of hunger the target has.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void OnExamine(Entity<ExamineableHungerComponent> entity, ref ExaminedEvent args)
|
private void OnExamine(Entity<ExaminableHungerComponent> entity, ref ExaminedEvent args)
|
||||||
{
|
{
|
||||||
var identity = Identity.Entity(entity, EntityManager);
|
var identity = Identity.Entity(entity, EntityManager);
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
examinable-hunger-component-examine-overfed = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} stuffed!
|
||||||
|
examinable-hunger-component-examine-okay = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} content.
|
||||||
|
examinable-hunger-component-examine-peckish = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} hungry.
|
||||||
|
examinable-hunger-component-examine-starving = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} starved!
|
||||||
|
examinable-hunger-component-examine-none = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "seem", "seems")} not to get hungry.
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
examineable-hunger-component-examine-overfed = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} stuffed!
|
|
||||||
examineable-hunger-component-examine-okay = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} content.
|
|
||||||
examineable-hunger-component-examine-peckish = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} hungry.
|
|
||||||
examineable-hunger-component-examine-starving = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "look", "looks")} starved!
|
|
||||||
examineable-hunger-component-examine-none = {CAPITALIZE(SUBJECT($entity))} {CONJUGATE-BASIC($entity, "seem", "seems")} not to get hungry.
|
|
||||||
@@ -229,7 +229,7 @@
|
|||||||
- type: EggLayer
|
- type: EggLayer
|
||||||
eggSpawn:
|
eggSpawn:
|
||||||
- id: FoodEgg
|
- id: FoodEgg
|
||||||
- type: ExamineableHunger
|
- type: ExaminableHunger
|
||||||
- type: ReplacementAccent
|
- type: ReplacementAccent
|
||||||
accent: chicken
|
accent: chicken
|
||||||
- type: SentienceTarget
|
- type: SentienceTarget
|
||||||
@@ -664,7 +664,7 @@
|
|||||||
- type: EggLayer
|
- type: EggLayer
|
||||||
eggSpawn:
|
eggSpawn:
|
||||||
- id: FoodEgg
|
- id: FoodEgg
|
||||||
- type: ExamineableHunger
|
- type: ExaminableHunger
|
||||||
- type: ReplacementAccent
|
- type: ReplacementAccent
|
||||||
accent: duck
|
accent: duck
|
||||||
- type: SentienceTarget
|
- type: SentienceTarget
|
||||||
@@ -830,7 +830,7 @@
|
|||||||
reagentId: Milk
|
reagentId: Milk
|
||||||
quantityPerUpdate: 25
|
quantityPerUpdate: 25
|
||||||
growthDelay: 30
|
growthDelay: 30
|
||||||
- type: ExamineableHunger
|
- type: ExaminableHunger
|
||||||
- type: Butcherable
|
- type: Butcherable
|
||||||
spawned:
|
spawned:
|
||||||
- id: FoodMeat
|
- id: FoodMeat
|
||||||
@@ -987,7 +987,7 @@
|
|||||||
reagentId: MilkGoat
|
reagentId: MilkGoat
|
||||||
quantityPerUpdate: 25
|
quantityPerUpdate: 25
|
||||||
growthDelay: 20
|
growthDelay: 20
|
||||||
- type: ExamineableHunger
|
- type: ExaminableHunger
|
||||||
- type: Wooly
|
- type: Wooly
|
||||||
- type: Food
|
- type: Food
|
||||||
solution: wool
|
solution: wool
|
||||||
|
|||||||
Reference in New Issue
Block a user