Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Content.Server/_ES/Masks/ESMaskSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using Content.Server._ES.Stagehand;
using Content.Server.Chat.Managers;
using Content.Server.GameTicking;
using Content.Server.Roles.Jobs;
Expand Down Expand Up @@ -26,6 +27,7 @@ public sealed class ESMaskSystem : ESSharedMaskSystem
[Dependency] private readonly EntityTableSystem _entityTable = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
[Dependency] private readonly JobSystem _job = default!;
[Dependency] private readonly ESStagehandNotificationsSystem _stagehandNotifications = default!;

private static readonly EntProtoId<ESMaskRoleComponent> MindRole = "ESMindRoleMask";

Expand Down Expand Up @@ -283,6 +285,14 @@ public override void ChangeMask(Entity<MindComponent> mind,
comp.Masks.RemoveAt(comp.Masks.Count - 1);
}
ApplyMask(mind, maskId, troupe);

if (mind.Comp.OwnedEntity is { } owned)
{
var name = _stagehandNotifications.WrapEntityNameWithUsername(owned);
var mask = Loc.GetString(PrototypeManager.Index(maskId).Name);
var msg = Loc.GetString("es-stagehand-notification-mask-change", ("player", name), ("mask", mask));
_stagehandNotifications.SendStagehandNotification(msg, ESStagehandNotificationSeverity.High);
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/_ES/stagehand/notifications.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ es-stagehand-notification-kill-player = {$player} was killed by {$attacker}!
es-stagehand-notification-objective-completed = {$entity} successfully completed their objective "{$objective}!"
es-stagehand-notification-objective-failed = {$entity} failed their objective "{$objective}!"

es-stagehand-notification-mask-change = {$player} donned a new mask, becoming {INDEFINITE($mask)} [bold]{$mask}![/bold]

es-stagehand-notifications-martyr-got-martyred = {$player} has been marked for death after killing {$attacker}, a martyr!
es-stagehand-notifications-martyr-killed-target = {$player} has met their fated, bloody end after killing a martyr.
Loading