Эксклюзив Амура

This commit is contained in:
BIGZi0348
2025-01-12 00:20:15 +03:00
parent 530d395ad6
commit 3052f9c15c
5 changed files with 29 additions and 15 deletions

View File

@@ -4,13 +4,12 @@ using Content.Server._Honk.Speech.Components;
using Content.Server._Honk.AspectsSystem.Aspects.Components;
using Content.Server._White.AspectsSystem.Base;
using Content.Shared.Mind.Components;
using Robust.Shared.Random;
namespace Content.Server._Honk.Aspects;
public sealed class AlasAccentAspect : AspectSystem<AlasAccentAspectComponent>
{
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly ChatHelper _chatHelper = default!;
public override void Initialize()
{
base.Initialize();
@@ -41,6 +40,7 @@ public sealed class AlasAccentAspect : AspectSystem<AlasAccentAspectComponent>
var mob = ev.Mob;
EntityManager.EnsureComponent<AlasAccentComponent>(mob);
_chatHelper.SendAspectDescription(mob, Loc.GetString("alas-aspect-desc"));
}
}
}

View File

@@ -5,12 +5,15 @@ using Content.Server._Honk.AspectsSystem.Aspects.Components;
using Content.Server._White.AspectsSystem.Base;
using Content.Shared.Mind.Components;
using Robust.Shared.Random;
using Content.Server._White.Accent.BomzhAccent;
namespace Content.Server._Honk.Aspects;
public sealed class CaucasianAccentAspect : AspectSystem<CaucasianAccentAspectComponent>
{
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly ChatHelper _chatHelper = default!;
public override void Initialize()
{
base.Initialize();
@@ -25,6 +28,8 @@ public sealed class CaucasianAccentAspect : AspectSystem<CaucasianAccentAspectCo
while (query.MoveNext(out var ent, out _))
{
EntityManager.EnsureComponent<CaucasianAccentComponent>(ent);
if (_random.Prob(0.95f))
EntityManager.EnsureComponent<BomzhAccentComponent>(ent);
}
}
@@ -41,6 +46,9 @@ public sealed class CaucasianAccentAspect : AspectSystem<CaucasianAccentAspectCo
var mob = ev.Mob;
EntityManager.EnsureComponent<CaucasianAccentComponent>(mob);
if (_random.Prob(0.95f))
EntityManager.EnsureComponent<BomzhAccentComponent>(mob);
_chatHelper.SendAspectDescription(mob, Loc.GetString("caucasian-accent-aspect-desc"));
}
}
}