Skip to content

Commit

Permalink
Merge pull request #81 from ss14Starlight/pacify-smite
Browse files Browse the repository at this point in the history
Pacify smite
  • Loading branch information
Rinary1 authored Nov 22, 2024
2 parents 5fc1b05 + 0f183a5 commit a8745ef
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
using Content.Shared.Tabletop.Components;
using Content.Shared.Tools.Systems;
using Content.Shared.Verbs;
using Content.Shared.CombatMode.Pacification;
using Robust.Shared.Map;
using Robust.Shared.Map.Components;
using Robust.Shared.Physics;
Expand Down Expand Up @@ -891,5 +892,20 @@ private void AddSmiteVerbs(GetVerbsEvent<Verb> args)
Message = string.Join(": ", superslipName, Loc.GetString("admin-smite-super-slip-description"))
};
args.Verbs.Add(superslip);

var pacifyName = Loc.GetString("admin-smite-pacify-name").ToLowerInvariant();
Verb pacify = new()
{
Text = pacifyName,
Category = VerbCategory.Smite,
Icon = new SpriteSpecifier.Rsi(new ("/Textures/Interface/Alerts/pacified.rsi"), "icon"),
Act = () =>
{
EnsureComp<PacifiedComponent>(args.Target);
},
Impact = LogImpact.Extreme,
Message = string.Join(": ", pacifyName, Loc.GetString("admin-smite-pacify-description"))
};
args.Verbs.Add(pacify);
}
}
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/administration/smites.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ admin-smite-vomit-organs-name = Vomit Organs
admin-smite-ghostkick-name = Ghost Kick
admin-smite-nyanify-name = Cat Ears
admin-smite-kill-sign-name = Kill Sign
admin-smite-pacify-name = Pacify
## Smite descriptions

Expand Down Expand Up @@ -99,6 +100,7 @@ admin-smite-super-bonk-description = Slams them on every single table on the Sta
admin-smite-super-bonk-lite-description= Slams them on every single table on the Station and beyond. Stops when the target is dead.
admin-smite-terminate-description = Creates a Terminator ghost role with the sole objective of killing them.
admin-smite-super-slip-description = Slips them really, really hard.
admin-smite-pacify-description = Makes the target a pacifist.
## Tricks descriptions

Expand Down
Binary file modified Resources/Textures/Interface/Alerts/pacified.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Resources/Textures/Interface/Alerts/pacified.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "@Vordenburg",
"copyright": "Paradise Station",
"size": {
"x": 32,
"y": 32
Expand Down

0 comments on commit a8745ef

Please sign in to comment.