]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ScrambledAccent (#13923)
authorVisne <39844191+Visne@users.noreply.github.com>
Sun, 5 Feb 2023 19:51:21 +0000 (20:51 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 19:51:21 +0000 (12:51 -0700)
Content.Server/Speech/EntitySystems/ScrambledAccentSystem.cs
Resources/Locale/en-US/accent/scrambled.ftl

index 00e1a768f394e1265bee2f7c123944f1ba6bcf17..37b267bec2b618f730fc72e5da75d9d7040f2e8c 100644 (file)
@@ -25,15 +25,15 @@ namespace Content.Server.Speech.EntitySystems
                 return Loc.GetString($"accent-scrambled-words-{pick}");
             }
 
-            //Scramble the words
+            // Scramble the words
             var scrambled = words.OrderBy(x => _random.Next()).ToArray();
 
-            var msg = String.Join(" ", scrambled);
+            var msg = string.Join(" ", scrambled);
 
-            //First letter should be capital
+            // First letter should be capital
             msg = msg[0].ToString().ToUpper() + msg.Remove(0, 1);
 
-            //Capitalize lone i's
+            // Capitalize lone i's
             msg = Regex.Replace(msg, @"(?<=\ )i(?=[\ \.\?]|$)", "I");
             return msg;
         }
index e01f57474233e23435d9791cb39c092cf5010f4d..e651980734db5bc1700da29191a7ed2ecac49c86 100644 (file)
@@ -1,7 +1,7 @@
-accent-scrambled-words-1 = Who?,
-accent-scrambled-words-2 = What?,
-accent-scrambled-words-3 = When?,
-accent-scrambled-words-4 = Where?,
-accent-scrambled-words-5 = Why!,
-accent-scrambled-words-6 = How?,
-accent-scrambled-words-7 = Me!,
+accent-scrambled-words-1 = Who?
+accent-scrambled-words-2 = What?
+accent-scrambled-words-3 = When?
+accent-scrambled-words-4 = Where?
+accent-scrambled-words-5 = Why?
+accent-scrambled-words-6 = How?
+accent-scrambled-words-7 = Me!