Add scream action popup message (#13429)

This commit is contained in:
Theomund
2023-01-11 04:06:14 -05:00
committed by GitHub
parent 8900409956
commit 240c9689fa
2 changed files with 7 additions and 1 deletions

View File

@@ -1,9 +1,11 @@
using Content.Server.Humanoid;
using Content.Server.Popups;
using Content.Server.Speech.Components;
using Content.Shared.ActionBlocker;
using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
using Content.Shared.Humanoid;
using Content.Shared.Popups;
using Robust.Shared.Audio;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
@@ -23,6 +25,7 @@ public sealed class VocalSystem : EntitySystem
[Dependency] private readonly IPrototypeManager _proto = default!;
[Dependency] private readonly SharedActionsSystem _actions = default!;
[Dependency] private readonly ActionBlockerSystem _blocker = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
public override void Initialize()
{
@@ -91,6 +94,8 @@ public sealed class VocalSystem : EntitySystem
break;
}
_popupSystem.PopupEntity(Loc.GetString("scream-action-popup"), uid, PopupType.Medium);
return true;
}
}

View File

@@ -1 +1,2 @@
action-name-scream = Scream
action-name-scream = Scream
scream-action-popup = Screams!