Новые аспекты (#495)

* Add ReflectAspect

* Add SlipperyAspect

* Add TraitorRichAspect

* Add WhisperAspect

* Add DarknessAspect & StolenFloorAspect

* Add WindowLeakAspect

* Add CatEarsAspect

* Add NothingAspect

* Fix fast and furious clone

* Add SkeletonAspect

* Add cvar ceanup
This commit is contained in:
Aviu00
2023-10-19 02:32:18 +09:00
committed by Aviu00
parent d7f4a21b05
commit ecf3ecad81
48 changed files with 751 additions and 29 deletions

View File

@@ -13,6 +13,7 @@ using Content.Server.Speech.Components;
using Content.Server.Station.Components;
using Content.Server.Station.Systems;
using Content.Server.UtkaIntegration;
using Content.Server.White.AspectsSystem.Aspects.Components;
using Content.Server.White.Other.Speech;
using Content.Shared.ActionBlocker;
using Content.Shared.Administration;
@@ -63,6 +64,7 @@ public sealed partial class ChatSystem : SharedChatSystem
[Dependency] private readonly SharedInteractionSystem _interactionSystem = default!;
[Dependency] private readonly ReplacementAccentSystem _wordreplacement = default!;
[Dependency] private readonly INetConfigurationManager _netConfigurationManager = default!; // WD
[Dependency] private readonly GameTicker _gameTicker = default!; // WD
//WD-EDIT
[Dependency] private readonly UtkaTCPWrapper _utkaSockets = default!;
@@ -262,6 +264,12 @@ public sealed partial class ChatSystem : SharedChatSystem
}
}
if (desiredType == InGameICChatType.Speak &&
_gameTicker.GetActiveGameRules().Where(HasComp<WhisperAspectComponent>).Any()) // WD
{
desiredType = InGameICChatType.Whisper;
}
// Otherwise, send whatever type.
switch (desiredType)
{