mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 14:38:36 +03:00
# Description Fixes a few test fails caused by merging PRs that had test fails. Also fixed a bug with spell popup text. And cleaned up the Mantis blade summoning test. https://github.com/user-attachments/assets/3ae44f67-99da-4d16-ade1-5473bf7baad0 # Changelog 🆑 - tweak: Taught the Psionic Mantis how to summon his blade quietly, and not do so via screaming like a lunatic. --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> (cherry picked from commit 7aebe8a48f7ed1d252ba9859cb5a2d4482cc21e4)
24 lines
592 B
C#
24 lines
592 B
C#
using Content.Server.Chat.Systems;
|
|
using Content.Shared.Chat;
|
|
using Content.Shared.Magic;
|
|
using Content.Shared.Magic.Events;
|
|
|
|
namespace Content.Server.Magic;
|
|
|
|
public sealed class MagicSystem : SharedMagicSystem
|
|
{
|
|
[Dependency] private readonly ChatSystem _chat = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<SpeakSpellEvent>(OnSpellSpoken);
|
|
}
|
|
|
|
private void OnSpellSpoken(ref SpeakSpellEvent args)
|
|
{
|
|
_chat.TrySendInGameICMessage(args.Performer, Loc.GetString(args.Speech), args.ChatType, false);
|
|
}
|
|
}
|