]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Loc fix for emote guidebook (#38020)
authorāda <ss.adasts@gmail.com>
Tue, 3 Jun 2025 15:55:15 +0000 (10:55 -0500)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 15:55:15 +0000 (17:55 +0200)
Loc fix

Content.Shared/EntityEffects/Effects/Emote.cs

index 08cf58c39ade62a008b9e89147e2babac3aa5171..494dc502f5ec3799b4a0f827e309167df280da7a 100644 (file)
@@ -38,6 +38,7 @@ public sealed partial class Emote : EventEntityEffect<Emote>
         if (!ShowInGuidebook)
             return null; // JUSTIFICATION: Emoting is mostly flavor, so same reason popup messages are not in here.
 
-        return Loc.GetString("reagent-effect-guidebook-emote", ("chance", Probability), ("emote", EmoteId));
+        var emotePrototype = prototype.Index<EmotePrototype>(EmoteId);
+        return Loc.GetString("reagent-effect-guidebook-emote", ("chance", Probability), ("emote", Loc.GetString(emotePrototype.Name)));
     }
 }