- fix: engine update fix
Some checks failed
Build & Test Map Renderer / build (ubuntu-latest) (push) Has been cancelled
Build & Test Debug / build (ubuntu-latest) (push) Has been cancelled
Check Merge Conflicts / Label (push) Has been cancelled
Test Packaging / Test Packaging (push) Has been cancelled
RGA schema validator / YAML RGA schema validator (push) Has been cancelled
Map file schema validator / YAML map schema validator (push) Has been cancelled
YAML Linter / YAML Linter (push) Has been cancelled
Build & Test Map Renderer / Build & Test Debug (push) Has been cancelled
Build & Test Debug / Build & Test Debug (push) Has been cancelled
Benchmarks / Run Benchmarks (push) Has been cancelled
Update Contrib and Patreons in credits / get_credits (push) Has been cancelled
Build & Publish Docfx / docfx (push) Has been cancelled

This commit is contained in:
2026-02-01 14:47:44 +03:00
parent 0026c52592
commit f02cc9cb87
66 changed files with 122 additions and 92 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using System.Text;
using Robust.Shared.Random;
namespace Content.Shared._White.Cult.Systems;
@@ -34,7 +35,7 @@ public sealed class CultistWordGeneratorManager
if (length <= 0)
throw new ArgumentException("Word length must be greater than zero.");
var word = "";
var word = new StringBuilder();
for (var i = 0; i < length; i++)
{
@@ -42,10 +43,10 @@ public sealed class CultistWordGeneratorManager
var randomChar = GetRandomChar(isVowel ? Vowels : Consonants);
word += randomChar;
word.Append(randomChar);
}
return word;
return word.ToString();
}
private char GetRandomChar(string characters)