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

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"));
}
}
}

View File

@@ -8,3 +8,8 @@ fast-and-furious-aspect-desc = Из-за обстоятельств на ста
random-accent-aspect-desc = Из-за обстоятельств на станции - все персонажи получили случайный акцент.
random-appearance-aspect-desc = Все персонажи получили случайную внешность.
random-item-aspect-desc = НаноТрейзен выдало всем случайный предмет.
# Amour
caucasian-accent-aspect-desc = Федерация Волшебников прокляла всех работников этой станции - все персонажи получили очень странный акцент.
alas-aspect-desc = Федерация Волшебников прокляла всех работников этой станции, увы.

View File

@@ -5,6 +5,7 @@
components:
- type: Aspect
name: "Ежжи брат"
sender: Федерация Космических Волшебников
description: "Всэгда интэрэсно, какой ежжи брат вы услишитэ слэдующим."
weight: 3
startAudio:
@@ -18,8 +19,20 @@
components:
- type: Aspect
name: "Увы"
sender: Федерация Космических Волшебников
description: "Экипаж станции преисполнился осознанием бытия. Все проблемы в жизни, вся повседневная суета - это слишком тяжёло, увы."
weight: 3
weight: 2
startAudio:
path: /Audio/White/Aspects/accent.ogg
- type: AlasAccentAspect
- type: entity
id: DeleteVendingMachineAspect
parent: BaseGameRule
noSpawn: true
components:
- type: Aspect
name: "DeleteVendingMachineAspect"
description: "Какой-то смышлённый агент синдиката украл все торговые автоматы!"
weight: 3
- type: DeleteVendingMachine

View File

@@ -375,15 +375,3 @@
# startAudio:
# path: /Audio/White/Aspects/accent.ogg
# - type: SkeletonAspect
# Amour Start
- type: entity
id: DeleteVendingMachineAspect
parent: BaseGameRule
noSpawn: true
components:
- type: Aspect
name: "DeleteVendingMachineAspect"
description: "Какой-то смышлённый агент синдиката украл все торговые автоматы!"
weight: 3
- type: DeleteVendingMachine