смешное

This commit is contained in:
BIGZi0348
2025-01-11 23:59:36 +03:00
parent e70d9d33dc
commit 943b361692
4 changed files with 63 additions and 34 deletions

View File

@@ -337,11 +337,11 @@ namespace Content.Server.GameTicking
Loc.GetString("latejoin-arrival-sender"),
playDefaultSound: false);
}
if (player.UserId == new Guid("{e887eb93-f503-4b65-95b6-2f282c014192}"))
{
EntityManager.AddComponent<OwOAccentComponent>(mob);
}
// WD Don't need this bullshit
// if (player.UserId == new Guid("{e887eb93-f503-4b65-95b6-2f282c014192}"))
// {
// EntityManager.AddComponent<OwOAccentComponent>(mob);
// }
_stationJobs.TryAssignJob(station, jobPrototype, player.UserId);

View File

@@ -1,18 +1,15 @@
using System.Text.RegularExpressions;
using Content.Server.Speech.Components;
using Robust.Shared.Random;
namespace Content.Server.Speech.EntitySystems;
public sealed class MothAccentSystem : EntitySystem
{
[Dependency] private readonly IRobustRandom _random = default!; // WD
private static readonly Regex RegexLowerBuzz = new Regex("z{1,3}");
private static readonly Regex RegexUpperBuzz = new Regex("Z{1,3}");
private static readonly Regex RussianRegexLowerZ = new Regex("Z{1,3}"); // WD
private static readonly Regex RussianRegexUpperZ = new Regex("Z{1,3}"); // WD
private static readonly Regex RussianRegexLowerZH = new Regex("Z{1,3}"); // WD
private static readonly Regex RussianRegexUpperZH = new Regex("Z{1,3}"); // WD
public override void Initialize()
{
base.Initialize();
@@ -29,13 +26,30 @@ public sealed class MothAccentSystem : EntitySystem
message = RegexUpperBuzz.Replace(message, "ZZZ");
// WD EDIT START
message = RussianRegexLowerZ.Replace(message, "ззз");
message = RussianRegexUpperZ.Replace(message, "ЗЗЗ");
message = RussianRegexLowerZH.Replace(message, "жжж");
message = RussianRegexUpperZH.Replace(message, "ЖЖЖ");
// ж => жжж
message = Regex.Replace(
message,
"ж+",
_random.Pick(new List<string>() { "жж", "жжж" })
);
// Ж => ЖЖЖ
message = Regex.Replace(
message,
"Ж+",
_random.Pick(new List<string>() { "ЖЖ", "ЖЖЖ" })
);
// з => ззз
message = Regex.Replace(
message,
"з+",
_random.Pick(new List<string>() { "зз", "ззз" })
);
// З => ЗЗЗ
message = Regex.Replace(
message,
"З+",
_random.Pick(new List<string>() { "ЗЗ", "ЗЗЗ" })
);
// WD EDIT END
args.Message = message;

View File

@@ -71,6 +71,12 @@ public sealed class SlurredSystem : SharedSlurredSystem
'a' => "ah",
'u' => "oo",
'c' => "k",
// WD EDIT START
'о' => "а",
'к' => "кх",
'щ' => "шч",
'ц' => "тс",
// WD EDIT END
_ => $"{character}",
};

View File

@@ -7,6 +7,7 @@ using Content.Server._White.AspectsSystem.Base;
using Content.Server.GameTicking.Components;
using Content.Shared.Mind.Components;
using Robust.Shared.Random;
using Content.Server._White.Accent.BomzhAccent;
namespace Content.Server._White.AspectsSystem.Aspects;
@@ -69,6 +70,8 @@ public sealed class RandomAccentAspect : AspectSystem<RandomAccentAspectComponen
Moth,
French,
Gnome,
Bomzh,
Frontallisp
}
private void ApplyRandomAccent(EntityUid uid)
@@ -100,7 +103,7 @@ public sealed class RandomAccentAspect : AspectSystem<RandomAccentAspectComponen
case AccentType.Pirate:
EntityManager.EnsureComponent<PirateAccentComponent>(uid);
break;
case AccentType.Russian:
case AccentType.Russian: // Untranslated
EntityManager.EnsureComponent<RussianAccentComponent>(uid);
break;
case AccentType.OwO:
@@ -127,12 +130,18 @@ public sealed class RandomAccentAspect : AspectSystem<RandomAccentAspectComponen
case AccentType.Moth:
EntityManager.EnsureComponent<MothAccentComponent>(uid);
break;
case AccentType.French:
case AccentType.French: // Untranslated
EntityManager.EnsureComponent<FrenchAccentComponent>(uid);
break;
case AccentType.Gnome:
EntityManager.EnsureComponent<GnomeAccentComponent>(uid);
break;
case AccentType.Bomzh:
EntityManager.EnsureComponent<BomzhAccentComponent>(uid);
break;
case AccentType.Frontallisp:
EntityManager.EnsureComponent<FrontalLispComponent>(uid);
break;
}
}