Эксклюзив Амура
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user