Всякое (#96)

* - tweak: Pull eaxe from uplink.

* - tweak: Nerf spear.

* - tweak: Give sec hardsuits heat resist.

* - tweak: Revert mistakes.

* - tweak: No discounts for nukies.

* - tweak: Nerf hardsuit prices.

* - fix: Fix cult chat whisper.
This commit is contained in:
Aviu00
2024-02-19 13:52:35 +09:00
committed by GitHub
parent 4cdc419429
commit d306f59452
13 changed files with 52 additions and 40 deletions

View File

@@ -1,3 +1,4 @@
using System.Linq;
using Robust.Shared.Random;
namespace Content.Shared._White.Cult.Systems;
@@ -14,7 +15,7 @@ public sealed class CultistWordGeneratorManager
public string GenerateText(string text)
{
var content = text.Split(' ');
var content = text.Split(' ').Where(x => x.Length > 0).ToArray();
var wordsAmount = content.Length;
if (wordsAmount <= 0)
@@ -22,10 +23,10 @@ public sealed class CultistWordGeneratorManager
for (var i = 0; i < wordsAmount; i++)
{
content[i] = GenerateWord(content[i].Length) + " ";
content[i] = GenerateWord(content[i].Length);
}
return string.Join("", content);
return string.Join(" ", content);
}
private string GenerateWord(int length)