diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs b/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs index 2b5ea90b12..777d40e110 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs @@ -12,6 +12,7 @@ using Content.Shared.Verbs; using Robust.Shared.Player; using Robust.Shared.Prototypes; using Robust.Shared.Utility; +using Content.Shared.Roles.Components; namespace Content.Server.Administration.Systems; @@ -29,6 +30,7 @@ public sealed partial class AdminVerbSystem private static readonly EntProtoId DefaultThiefRule = "Thief"; private static readonly EntProtoId DefaultChangelingRule = "Changeling"; private static readonly EntProtoId ParadoxCloneRuleId = "ParadoxCloneSpawn"; + private static readonly EntProtoId DefaultWizardRule = "Wizard"; private static readonly ProtoId PirateGearId = "PirateGear"; // All antag verbs have names so invokeverb works. @@ -189,6 +191,22 @@ public sealed partial class AdminVerbSystem Message = string.Join(": ", paradoxCloneName, Loc.GetString("admin-verb-make-paradox-clone")), }; + var wizardName = Loc.GetString("admin-verb-text-make-wizard"); + Verb wizard = new() + { + Text = wizardName, + Category = VerbCategory.Antag, + Icon = new SpriteSpecifier.Rsi(new("/Textures/Interface/Misc/job_icons.rsi"), "Wizard"), + Act = () => + { + // Wizard has no rule components as of writing, but I gotta put something here to satisfy the machine so just make it wizard mind rule :) + _antag.ForceMakeAntag(targetPlayer, DefaultWizardRule); + }, + Impact = LogImpact.High, + Message = string.Join(": ", wizardName, Loc.GetString("admin-verb-make-wizard")), + }; + args.Verbs.Add(wizard); + 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 161054aca2..5cb9b30133 100644 --- a/Resources/Locale/en-US/administration/antag.ftl +++ b/Resources/Locale/en-US/administration/antag.ftl @@ -7,6 +7,7 @@ admin-verb-make-pirate = Make the target into a pirate. Note this doesn't config 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-changeling = Make the target into a Changeling. @@ -18,6 +19,7 @@ admin-verb-text-make-pirate = Make Pirate 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-changeling = Make Changeling (WIP) admin-overlay-antag-classic = ANTAG