]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ExaminableHunger spelling (#35309)
authorMilenVolf <63782763+MilenVolf@users.noreply.github.com>
Wed, 19 Feb 2025 14:23:53 +0000 (17:23 +0300)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2025 14:23:53 +0000 (09:23 -0500)
Fix ExaminableHunger spelling mistake

Content.Shared/Nutrition/Components/ExaminableHungerComponent.cs [moved from Content.Shared/Nutrition/Components/ExamineableHungerComponent.cs with 54% similarity]
Content.Shared/Nutrition/EntitySystems/ExaminableHungerSystem.cs [moved from Content.Shared/Nutrition/EntitySystems/ExamineableHungerSystem.cs with 79% similarity]
Resources/Locale/en-US/nutrition/components/examinable-hunger-component.ftl [new file with mode: 0644]
Resources/Locale/en-US/nutrition/components/examineable-hunger-component.ftl [deleted file]
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml

similarity index 54%
rename from Content.Shared/Nutrition/Components/ExamineableHungerComponent.cs
rename to Content.Shared/Nutrition/Components/ExaminableHungerComponent.cs
index 00aba82e5837e1ec6ac810a62bc8c7531e99264c..4431a5ef4adb1d27e79d986a6741f3a23b9a73f1 100644 (file)
@@ -7,8 +7,8 @@ namespace Content.Shared.Nutrition.Components;
 /// Adds text to the entity's description box based on its current hunger threshold.
 /// </summary>
 [RegisterComponent, NetworkedComponent]
-[Access(typeof(ExamineableHungerSystem))]
-public sealed partial class ExamineableHungerComponent : Component
+[Access(typeof(ExaminableHungerSystem))]
+public sealed partial class ExaminableHungerComponent : Component
 {
     /// <summary>
     /// Dictionary of hunger thresholds to LocIds of the messages to display.
@@ -16,16 +16,16 @@ public sealed partial class ExamineableHungerComponent : Component
     [DataField]
     public Dictionary<HungerThreshold, LocId> Descriptions = new()
     {
-        { HungerThreshold.Overfed, "examineable-hunger-component-examine-overfed"},
-        { HungerThreshold.Okay, "examineable-hunger-component-examine-okay"},
-        { HungerThreshold.Peckish, "examineable-hunger-component-examine-peckish"},
-        { HungerThreshold.Starving, "examineable-hunger-component-examine-starving"},
-        { HungerThreshold.Dead, "examineable-hunger-component-examine-starving"}
+        { 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 = "examineable-hunger-component-examine-none";
+    public LocId NoHungerDescription = "examinable-hunger-component-examine-none";
 }
similarity index 79%
rename from Content.Shared/Nutrition/EntitySystems/ExamineableHungerSystem.cs
rename to Content.Shared/Nutrition/EntitySystems/ExaminableHungerSystem.cs
index e0ac767bcf561264158d45c58e2749af2a045552..1a1418b644c3323ee4f0b3b77d16de4f9972673d 100644 (file)
@@ -4,8 +4,8 @@ using Content.Shared.Nutrition.Components;
 
 namespace Content.Shared.Nutrition.EntitySystems;
 
-/// <inheritdoc cref="ExamineableHungerComponent"/>
-public sealed class ExamineableHungerSystem : EntitySystem
+/// <inheritdoc cref="ExaminableHungerComponent"/>
+public sealed class ExaminableHungerSystem : EntitySystem
 {
     [Dependency] private readonly HungerSystem _hunger = default!;
     private EntityQuery<HungerComponent> _hungerQuery;
@@ -16,14 +16,14 @@ public sealed class ExamineableHungerSystem : EntitySystem
 
         _hungerQuery = GetEntityQuery<HungerComponent>();
 
-        SubscribeLocalEvent<ExamineableHungerComponent, ExaminedEvent>(OnExamine);
+        SubscribeLocalEvent<ExaminableHungerComponent, ExaminedEvent>(OnExamine);
     }
 
     /// <summary>
     ///     Defines the text provided on examine.
     ///     Changes depending on the amount of hunger the target has.
     /// </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);
 
diff --git a/Resources/Locale/en-US/nutrition/components/examinable-hunger-component.ftl b/Resources/Locale/en-US/nutrition/components/examinable-hunger-component.ftl
new file mode 100644 (file)
index 0000000..c42b56e
--- /dev/null
@@ -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.
diff --git a/Resources/Locale/en-US/nutrition/components/examineable-hunger-component.ftl b/Resources/Locale/en-US/nutrition/components/examineable-hunger-component.ftl
deleted file mode 100644 (file)
index d8d9963..0000000
+++ /dev/null
@@ -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.
index 6dc055ea2a2baff995329cd841fc5a3cd9359dab..aaca896175475e6df33d46080218856bb8bb653e 100644 (file)
   - type: EggLayer
     eggSpawn:
     - id: FoodEgg
-  - type: ExamineableHunger
+  - type: ExaminableHunger
   - type: ReplacementAccent
     accent: chicken
   - type: SentienceTarget
   - type: EggLayer
     eggSpawn:
     - id: FoodEgg
-  - type: ExamineableHunger
+  - type: ExaminableHunger
   - type: ReplacementAccent
     accent: duck
   - type: SentienceTarget
     reagentId: Milk
     quantityPerUpdate: 25
     growthDelay: 30
-  - type: ExamineableHunger
+  - type: ExaminableHunger
   - type: Butcherable
     spawned:
     - id: FoodMeat
     reagentId: MilkGoat
     quantityPerUpdate: 25
     growthDelay: 20
-  - type: ExamineableHunger
+  - type: ExaminableHunger
   - type: Wooly
   - type: Food
     solution: wool