From 951f13fd699f06c08831ea4fca5c0f431fcdc9ec Mon Sep 17 00:00:00 2001 From: YoungThug Date: Sun, 28 Dec 2025 17:01:35 -0700 Subject: [PATCH] Add antag control for the space ninja (#42133) * Add antag control for the space ninja * Remove whitespace --------- Co-authored-by: beck-thompson --- .../Systems/AdminVerbSystem.Antags.cs | 16 ++++++++++++++++ Resources/Locale/en-US/administration/antag.ftl | 2 ++ 2 files changed, 18 insertions(+) diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs b/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs index 777d40e110..786a4294bf 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs @@ -31,6 +31,7 @@ public sealed partial class AdminVerbSystem private static readonly EntProtoId DefaultChangelingRule = "Changeling"; private static readonly EntProtoId ParadoxCloneRuleId = "ParadoxCloneSpawn"; private static readonly EntProtoId DefaultWizardRule = "Wizard"; + private static readonly EntProtoId DefaultNinjaRule = "NinjaSpawn"; private static readonly ProtoId PirateGearId = "PirateGear"; // All antag verbs have names so invokeverb works. @@ -207,6 +208,21 @@ public sealed partial class AdminVerbSystem }; args.Verbs.Add(wizard); + var ninjaName = Loc.GetString("admin-verb-text-make-space-ninja"); + Verb ninja = new() + { + Text = ninjaName, + Category = VerbCategory.Antag, + Icon = new SpriteSpecifier.Rsi(new("/Textures/Objects/Weapons/Melee/energykatana.rsi"), "icon"), + Act = () => + { + _antag.ForceMakeAntag(targetPlayer, DefaultNinjaRule); + }, + Impact = LogImpact.High, + Message = string.Join(": ", ninjaName, Loc.GetString("admin-verb-make-space-ninja")), + }; + args.Verbs.Add(ninja); + if (HasComp(args.Target)) // only humanoids can be cloned args.Verbs.Add(paradox); } diff --git a/Resources/Locale/en-US/administration/antag.ftl b/Resources/Locale/en-US/administration/antag.ftl index 5cb9b30133..a81dd048b8 100644 --- a/Resources/Locale/en-US/administration/antag.ftl +++ b/Resources/Locale/en-US/administration/antag.ftl @@ -8,6 +8,7 @@ admin-verb-make-head-rev = Make the target into a Head Revolutionary. admin-verb-make-thief = Make the target into a thief. admin-verb-make-paradox-clone = Create a Paradox Clone ghost role of the target. admin-verb-make-wizard = Make the target into a Wizard. +admin-verb-make-space-ninja = Make the target into a Space Ninja. admin-verb-make-changeling = Make the target into a Changeling. @@ -20,6 +21,7 @@ admin-verb-text-make-head-rev = Make Head Rev admin-verb-text-make-thief = Make Thief admin-verb-text-make-paradox-clone = Create Paradox Clone admin-verb-text-make-wizard = Make Wizard +admin-verb-text-make-space-ninja = Make Ninja admin-verb-text-make-changeling = Make Changeling (WIP) admin-overlay-antag-classic = ANTAG -- 2.52.0