]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Moved hardcoded string "PEOPLE" to Loc.GetString() (#32164)
authorBIGZi0348 <118811750+BIGZi0348@users.noreply.github.com>
Sat, 14 Sep 2024 19:37:41 +0000 (22:37 +0300)
committerGitHub <noreply@github.com>
Sat, 14 Sep 2024 19:37:41 +0000 (22:37 +0300)
Content.Server/StationEvents/Events/IonStormRule.cs
Resources/Locale/en-US/station-events/events/ion-storm.ftl

index 7a959eb1e35667d75f64446187f0d147ab4721db..805549439badef21b5feaf6dc365c8935fecd912 100644 (file)
@@ -235,6 +235,8 @@ public sealed class IonStormRule : StationEventSystem<IonStormRuleComponent>
 
         if (plural) feeling = feelingPlural;
 
+        var subjects = RobustRandom.Prob(0.5f) ? objectsThreats : Loc.GetString("ion-storm-people");
+
         // message logic!!!
         return RobustRandom.Next(0, 36) switch
         {
@@ -266,7 +268,7 @@ public sealed class IonStormRule : StationEventSystem<IonStormRuleComponent>
             26 => Loc.GetString("ion-storm-law-crew-must-go", ("who", crewAll), ("area", area)),
             27 => Loc.GetString("ion-storm-law-crew-only-1", ("who", crew1), ("part", part)),
             28 => Loc.GetString("ion-storm-law-crew-only-2", ("who", crew1), ("other", crew2), ("part", part)),
-            29 => Loc.GetString("ion-storm-law-crew-only-subjects", ("adjective", adjective), ("subjects", RobustRandom.Prob(0.5f) ? objectsThreats : "PEOPLE"), ("part", part)),
+            29 => Loc.GetString("ion-storm-law-crew-only-subjects", ("adjective", adjective), ("subjects", subjects), ("part", part)),
             30 => Loc.GetString("ion-storm-law-crew-must-do", ("must", must), ("part", part)),
             31 => Loc.GetString("ion-storm-law-crew-must-have", ("adjective", adjective), ("objects", objects), ("part", part)),
             32 => Loc.GetString("ion-storm-law-crew-must-eat", ("who", who), ("adjective", adjective), ("food", food), ("part", part)),
index 28192d966370f269db6426b5f3327b020e11111b..02be271cdf2f1ee8b1862466887f04ab0b96fe98 100644 (file)
@@ -9,6 +9,7 @@ ion-storm-the-job = THE {$job}
 ion-storm-clowns = CLOWNS
 ion-storm-heads = HEADS OF STAFF
 ion-storm-crew = CREW
+ion-storm-people = PEOPLE
 
 ion-storm-adjective-things = {$adjective} THINGS
 ion-storm-x-and-y = {$x} AND {$y}