Prayers Again (#10960)
* prayer system * verbs * localize * Praying changes * praying + cleanup * Revert "praying + cleanup" This reverts commit e8ee90f9f0be9a2eeb4d660359f0913c9e82aba3. * Prayers (actually) * forgot to remove this * slight fixes * veritius reviews * I did it * less HD images Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,7 @@ using Content.Server.Ghost.Roles;
|
||||
using Content.Server.Mind.Commands;
|
||||
using Content.Server.Mind.Components;
|
||||
using Content.Server.Players;
|
||||
using Content.Server.Prayer;
|
||||
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
||||
using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
|
||||
using Content.Shared.Administration;
|
||||
@@ -45,6 +46,7 @@ namespace Content.Server.Administration.Systems
|
||||
[Dependency] private readonly GhostRoleSystem _ghostRoleSystem = default!;
|
||||
[Dependency] private readonly ArtifactSystem _artifactSystem = default!;
|
||||
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
||||
[Dependency] private readonly PrayerSystem _prayerSystem = default!;
|
||||
|
||||
private readonly Dictionary<IPlayerSession, EditSolutionsEui> _openSolutionUis = new();
|
||||
|
||||
@@ -80,6 +82,21 @@ namespace Content.Server.Administration.Systems
|
||||
verb.Impact = LogImpact.Low;
|
||||
args.Verbs.Add(verb);
|
||||
|
||||
// Subtle Messages
|
||||
Verb prayerVerb = new();
|
||||
prayerVerb.Text = Loc.GetString("prayer-verbs-subtle-message");
|
||||
prayerVerb.Category = VerbCategory.Admin;
|
||||
prayerVerb.IconTexture = "/Textures/Interface/pray.svg.png";
|
||||
prayerVerb.Act = () =>
|
||||
{
|
||||
_quickDialog.OpenDialog(player, "Subtle Message", "Message", "Popup Message", (string message, string popupMessage) =>
|
||||
{
|
||||
_prayerSystem.SendSubtleMessage(targetActor.PlayerSession, message, popupMessage == "" ? Loc.GetString("prayer-popup-subtle-default") : popupMessage);
|
||||
});
|
||||
};
|
||||
prayerVerb.Impact = LogImpact.Low;
|
||||
args.Verbs.Add(prayerVerb);
|
||||
|
||||
// Freeze
|
||||
var frozen = HasComp<AdminFrozenComponent>(args.Target);
|
||||
args.Verbs.Add(new Verb
|
||||
|
||||
Reference in New Issue
Block a user