# Conflicts: # Content.Client/Administration/Managers/ClientAdminManager.cs # Content.Client/Administration/Systems/BwoinkSystem.cs # Content.Client/Alerts/ClientAlertsSystem.cs # Content.Client/Audio/BackgroundAudioSystem.cs # Content.Client/CardboardBox/CardboardBoxSystem.cs # Content.Client/Chemistry/UI/InjectorStatusControl.cs # Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml # Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs # Content.Client/Clothing/ClientClothingSystem.cs # Content.Client/CriminalRecords/CriminalRecordsConsoleBoundUserInterface.cs # Content.Client/CriminalRecords/CriminalRecordsConsoleWindow.xaml.cs # Content.Client/Decals/Overlays/DecalOverlay.cs # Content.Client/DoAfter/DoAfterOverlay.cs # Content.Client/Doors/AirlockSystem.cs # Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml # Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs # Content.Client/Launcher/LauncherConnectingGui.xaml # Content.Client/Launcher/LauncherConnectingGui.xaml.cs # Content.Client/Lobby/LobbyState.cs # Content.Client/Lobby/UI/LobbyGui.xaml.cs # Content.Client/MainMenu/UI/MainMenuControl.xaml # Content.Client/MassMedia/Ui/MiniArticleCardControl.xaml # Content.Client/MassMedia/Ui/MiniArticleCardControl.xaml.cs # Content.Client/MassMedia/Ui/NewsWriteMenu.xaml # Content.Client/MassMedia/Ui/NewsWriteMenu.xaml.cs # Content.Client/Options/UI/Tabs/MiscTab.xaml # Content.Client/Options/UI/Tabs/MiscTab.xaml.cs # Content.Client/Outline/InteractionOutlineSystem.cs # Content.Client/Overlays/ShowSecurityIconsSystem.cs # Content.Client/Players/PlayTimeTracking/JobRequirementsManager.cs # Content.Client/Popups/PopupOverlay.cs # Content.Client/Popups/PopupSystem.cs # Content.Client/Preferences/ClientPreferencesManager.cs # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml # Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs # Content.Client/StatusIcon/StatusIconOverlay.cs # Content.Client/Stylesheets/StyleNano.cs # Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs # Content.Client/UserInterface/Systems/Chat/ChatUIController.cs # Content.Server/Access/Systems/IdCardConsoleSystem.cs # Content.Server/Administration/Commands/BanCommand.cs # Content.Server/Administration/Notes/AdminMessageEui.cs # Content.Server/Administration/Notes/AdminNotesSystem.cs # Content.Server/Administration/Notes/IAdminNotesManager.cs # Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs # Content.Server/Administration/Systems/BwoinkSystem.cs # Content.Server/Administration/UI/PermissionsEui.cs # Content.Server/Antag/AntagSelectionSystem.cs # Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs # Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs # Content.Server/Chat/Systems/ChatSystem.cs # Content.Server/Chemistry/EntitySystems/InjectorSystem.cs # Content.Server/Chemistry/EntitySystems/ReagentDispenserSystem.cs # Content.Server/Connection/ConnectionManager.cs # Content.Server/CriminalRecords/Systems/CriminalRecordsConsoleSystem.cs # Content.Server/Database/DatabaseRecords.cs # Content.Server/Database/ServerDbBase.cs # Content.Server/Database/ServerDbManager.cs # Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs # Content.Server/Doors/Systems/DoorSystem.cs # Content.Server/Execution/ExecutionSystem.cs # Content.Server/Explosion/EntitySystems/ExplosionSystem.cs # Content.Server/Fax/FaxSystem.cs # Content.Server/Fluids/EntitySystems/PuddleSystem.Evaporation.cs # Content.Server/GameTicking/GameTicker.Replays.cs # Content.Server/GameTicking/GameTicker.RoundFlow.cs # Content.Server/GameTicking/Rules/Components/ThiefRuleComponent.cs # Content.Server/GameTicking/Rules/GameRuleSystem.Utility.cs # Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs # Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs # Content.Server/GameTicking/Rules/ThiefRuleSystem.cs # Content.Server/GameTicking/Rules/TraitorRuleSystem.cs # Content.Server/GameTicking/Rules/ZombieRuleSystem.cs # Content.Server/Hands/Systems/HandsSystem.cs # Content.Server/Holosign/HolosignSystem.cs # Content.Server/Humanoid/Systems/HumanoidAppearanceSystem.cs # Content.Server/Info/InfoSystem.cs # Content.Server/Kitchen/EntitySystems/SharpSystem.cs # Content.Server/Magic/MagicSystem.cs # Content.Server/MagicMirror/MagicMirrorSystem.cs # Content.Server/Mapping/MappingSystem.cs # Content.Server/MassMedia/Systems/NewsSystem.cs # Content.Server/Medical/Components/HealthAnalyzerComponent.cs # Content.Server/Medical/CrewMonitoring/CrewMonitoringServerSystem.cs # Content.Server/Medical/CryoPodSystem.cs # Content.Server/Medical/HealthAnalyzerSystem.cs # Content.Server/Nutrition/EntitySystems/OpenableSystem.cs # Content.Server/Preferences/Managers/ServerPreferencesManager.cs # Content.Server/Remotes/DoorRemoteSystem.cs # Content.Server/Resist/EscapeInventorySystem.cs # Content.Server/Revenant/EntitySystems/RevenantSystem.Abilities.cs # Content.Server/Shuttles/Systems/EmergencyShuttleSystem.Console.cs # Content.Server/Shuttles/Systems/EmergencyShuttleSystem.cs # Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs # Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs # Content.Server/Species/Systems/NymphSystem.cs # Content.Server/StationEvents/Components/GasLeakRuleComponent.cs # Content.Server/StationEvents/EventManagerSystem.cs # Content.Server/Store/Systems/StoreSystem.Ui.cs # Content.Server/Strip/StrippableSystem.cs # Content.Server/VendingMachines/VendingMachineSystem.cs # Content.Server/Weapons/Ranged/Systems/GunSystem.cs # Content.Shared.Database/LogType.cs # Content.Shared/Actions/SharedActionsSystem.cs # Content.Shared/Administration/AdminFlags.cs # Content.Shared/Administration/SharedBwoinkSystem.cs # Content.Shared/Anomaly/SharedAnomalySystem.cs # Content.Shared/Bed/Sleep/SharedSleepingSystem.cs # Content.Shared/Buckle/SharedBuckleSystem.Strap.cs # Content.Shared/Chat/ChatChannel.cs # Content.Shared/Chemistry/Components/InjectorComponent.cs # Content.Shared/Chemistry/EntitySystems/SharedInjectorSystem.cs # Content.Shared/Chemistry/SharedReagentDispenser.cs # Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs # Content.Shared/CriminalRecords/Systems/SharedCriminalRecordsConsoleSystem.cs # Content.Shared/Cuffs/SharedCuffableSystem.cs # Content.Shared/Doors/Systems/SharedDoorSystem.cs # Content.Shared/Friction/TileFrictionController.cs # Content.Shared/Humanoid/Prototypes/SpeciesPrototype.cs # Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs # Content.Shared/Implants/SharedImplanterSystem.cs # Content.Shared/Lock/LockSystem.cs # Content.Shared/MedicalScanner/HealthAnalyzerScannedUserMessage.cs # Content.Shared/Nutrition/Components/OpenableComponent.cs # Content.Shared/Nutrition/EntitySystems/SharedOpenableSystem.cs # Content.Shared/Nutrition/EntitySystems/ThirstSystem.cs # Content.Shared/Preferences/HumanoidCharacterProfile.cs # Content.Shared/Preferences/ICharacterProfile.cs # Content.Shared/Projectiles/SharedProjectileSystem.cs # Content.Shared/Pulling/Systems/SharedPullingSystem.Actions.cs # Content.Shared/Security/SecurityStatus.cs # Content.Shared/Security/Systems/DeployableBarrierSystem.cs # Content.Shared/Slippery/SlipperySystem.cs # Content.Shared/Species/Systems/ReformSystem.cs # Content.Shared/Standing/StandingStateSystem.cs # Content.Shared/StatusIcon/StatusIconPrototype.cs # Content.Shared/Store/ListingPrototype.cs # Content.Shared/VendingMachines/SharedVendingMachineSystem.cs # Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs # README.md # Resources/Audio/Ambience/Antag/pirate_start.ogg # Resources/Changelog/Changelog.yml # Resources/Credits/GitHub.txt # Resources/Locale/en-US/criminal-records/criminal-records.ftl # Resources/Locale/en-US/escape-menu/ui/options-menu.ftl # Resources/Locale/en-US/medical/components/health-analyzer-component.ftl # Resources/Locale/en-US/reagents/meta/biological.ftl # Resources/Locale/en-US/reagents/meta/fun.ftl # Resources/Locale/en-US/reagents/meta/physical-desc.ftl # Resources/Locale/en-US/seeds/seeds.ftl # Resources/Locale/en-US/wires/wire-names.ftl # Resources/Maps/Shuttles/cargo_fland.yml # Resources/Maps/core.yml # Resources/Maps/europa.yml # Resources/Maps/fland.yml # Resources/Maps/origin.yml # Resources/Maps/saltern.yml # Resources/Maps/train.yml # Resources/Prototypes/Actions/diona.yml # Resources/Prototypes/Atmospherics/gases.yml # Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml # Resources/Prototypes/Catalog/Cargo/cargo_engines.yml # Resources/Prototypes/Catalog/Cargo/cargo_fun.yml # Resources/Prototypes/Catalog/Cargo/cargo_security.yml # Resources/Prototypes/Catalog/Cargo/cargo_service.yml # Resources/Prototypes/Catalog/Cargo/cargo_vending.yml # Resources/Prototypes/Catalog/Fills/Boxes/general.yml # Resources/Prototypes/Catalog/Fills/Boxes/syndicate.yml # Resources/Prototypes/Catalog/Fills/Crates/engines.yml # Resources/Prototypes/Catalog/Fills/Items/briefcases.yml # Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml # Resources/Prototypes/Catalog/Fills/Lockers/dressers.yml # Resources/Prototypes/Catalog/Fills/Lockers/heads.yml # Resources/Prototypes/Catalog/Fills/Lockers/security.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/bardrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/clothesmate.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/medical.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/medidrobe.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/robotics.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml # Resources/Prototypes/Catalog/uplink_catalog.yml # Resources/Prototypes/Datasets/Names/first_male.yml # Resources/Prototypes/Datasets/tips.yml # Resources/Prototypes/Entities/Clothing/Hands/colored.yml # Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml # Resources/Prototypes/Entities/Clothing/Head/hats.yml # Resources/Prototypes/Entities/Clothing/OuterClothing/coats.yml # Resources/Prototypes/Entities/Clothing/Uniforms/jumpsuits.yml # Resources/Prototypes/Entities/Mobs/NPCs/animals.yml # Resources/Prototypes/Entities/Mobs/Player/silicon.yml # Resources/Prototypes/Entities/Mobs/Species/base.yml # Resources/Prototypes/Entities/Mobs/Species/slime.yml # Resources/Prototypes/Entities/Mobs/Species/vox.yml # Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks.yml # Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_bottles.yml # Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml # Resources/Prototypes/Entities/Objects/Devices/Electronics/signaller.yml # Resources/Prototypes/Entities/Objects/Devices/nuke.yml # Resources/Prototypes/Entities/Objects/Devices/pda.yml # Resources/Prototypes/Entities/Objects/Fun/toys.yml # Resources/Prototypes/Entities/Objects/Materials/Sheets/glass.yml # Resources/Prototypes/Entities/Objects/Materials/parts.yml # Resources/Prototypes/Entities/Objects/Misc/identification_cards.yml # Resources/Prototypes/Entities/Objects/Misc/implanters.yml # Resources/Prototypes/Entities/Objects/Misc/kudzu.yml # Resources/Prototypes/Entities/Objects/Misc/rubber_stamp.yml # Resources/Prototypes/Entities/Objects/Shields/shields.yml # Resources/Prototypes/Entities/Objects/Specific/Hydroponics/tools.yml # Resources/Prototypes/Entities/Objects/Specific/Medical/handheld_crew_monitor.yml # Resources/Prototypes/Entities/Objects/Specific/Medical/healthanalyzer.yml # Resources/Prototypes/Entities/Objects/Specific/Robotics/borg_modules.yml # Resources/Prototypes/Entities/Objects/Weapons/Bombs/firebomb.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Projectiles/shotgun.yml # Resources/Prototypes/Entities/Objects/Weapons/Melee/e_sword.yml # Resources/Prototypes/Entities/Structures/Decoration/curtains.yml # Resources/Prototypes/Entities/Structures/Doors/Airlocks/access.yml # Resources/Prototypes/Entities/Structures/Doors/MaterialDoors/material_doors.yml # Resources/Prototypes/Entities/Structures/Doors/Windoors/base_structurewindoors.yml # Resources/Prototypes/Entities/Structures/Lighting/base_lighting.yml # Resources/Prototypes/Entities/Structures/Machines/lathe.yml # Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml # Resources/Prototypes/Entities/Structures/Specific/Anomaly/anomalies.yml # Resources/Prototypes/Entities/Structures/Storage/glass_box.yml # Resources/Prototypes/Entities/Structures/Wallmounts/fireaxe_cabinet.yml # Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml # Resources/Prototypes/Entities/Structures/Walls/asteroid.yml # Resources/Prototypes/Entities/Structures/Walls/grille.yml # Resources/Prototypes/Entities/Structures/Walls/walls.yml # Resources/Prototypes/Entities/Structures/Windows/window.yml # Resources/Prototypes/Entities/Structures/stairs.yml # Resources/Prototypes/GameRules/events.yml # Resources/Prototypes/Hydroponics/seeds.yml # Resources/Prototypes/Maps/saltern.yml # Resources/Prototypes/Reagents/biological.yml # Resources/Prototypes/Reagents/fun.yml # Resources/Prototypes/Recipes/Construction/Graphs/utilities/solarpanel.yml # Resources/Prototypes/Recipes/Construction/weapons.yml # Resources/Prototypes/Recipes/Crafting/improvised.yml # Resources/Prototypes/Recipes/Lathes/clothing.yml # Resources/Prototypes/Recipes/Reactions/fun.yml # Resources/Prototypes/Research/arsenal.yml # Resources/Prototypes/Roles/Jobs/Engineering/technical_assistant.yml # Resources/Prototypes/Roles/Jobs/Fun/emergencyresponseteam.yml # Resources/Prototypes/Roles/Jobs/Medical/medical_intern.yml # Resources/Prototypes/Roles/Jobs/Medical/paramedic.yml # Resources/Prototypes/Roles/Jobs/Science/research_assistant.yml # Resources/Prototypes/Roles/Jobs/Security/detective.yml # Resources/Prototypes/Roles/Jobs/Security/security_cadet.yml # Resources/Prototypes/Roles/Jobs/departments.yml # Resources/Prototypes/Species/human.yml # Resources/Prototypes/Species/vox.yml # Resources/Prototypes/Stacks/Materials/materials.yml # Resources/Prototypes/StatusEffects/health.yml # Resources/Prototypes/Tiles/plating.yml # Resources/Prototypes/Voice/speech_emote_sounds.yml # Resources/Prototypes/Voice/speech_emotes.yml # Resources/Prototypes/explosion.yml # Resources/Prototypes/game_presets.yml # Resources/Prototypes/lobbyscreens.yml # Resources/Prototypes/secret_weights.yml # Resources/Prototypes/tags.yml # Resources/ServerInfo/Guidebook/Jobs.xml # Resources/ServerInfo/Guidebook/Science/ArtifactReports.xml # Resources/Textures/Clothing/Belt/emt.rsi/meta.json # Resources/Textures/Clothing/Head/Hats/beret_medic.rsi/meta.json # Resources/Textures/Clothing/Head/Hats/beret_qm.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/bluesoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/corpsoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/greensoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/greysoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Head/Soft/paramedicsoft_flipped.rsi/meta.json # Resources/Textures/Clothing/Mask/neckgaiterred.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Hardsuits/slayer.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Hardsuits/syndicate.rsi/meta.json # Resources/Textures/Clothing/OuterClothing/Suits/syndicate.rsi/meta.json # Resources/Textures/Clothing/Uniforms/Jumpsuit/qmformal.rsi/meta.json # Resources/Textures/Decals/Overlays/greyscale.rsi/checkerNESW.png # Resources/Textures/Decals/Overlays/greyscale.rsi/checkerNWSE.png # Resources/Textures/Decals/Overlays/greyscale.rsi/fulltile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/halftile_overlay_90.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/quartertile_overlay_90.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_180.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_270.png # Resources/Textures/Decals/Overlays/greyscale.rsi/threequartertile_overlay_90.png # Resources/Textures/Interface/Misc/job_icons.rsi/meta.json # Resources/Textures/Interface/emotions.svg.192dpi.png.yml # Resources/Textures/LobbyScreens/dead-in-space.png.yml # Resources/Textures/LobbyScreens/doomed.webp.yml # Resources/Textures/LobbyScreens/pharmacy.png.yml # Resources/Textures/LobbyScreens/pharmacy.webp.yml # Resources/Textures/LobbyScreens/robotics.webp.yml # Resources/Textures/LobbyScreens/supermatter.png.yml # Resources/Textures/LobbyScreens/susstation.png.yml # Resources/Textures/LobbyScreens/warden.png.yml # Resources/Textures/LobbyScreens/warden.webp.yml # Resources/Textures/Mobs/Customization/human_hair.rsi/meta.json # Resources/Textures/Mobs/Effects/brute_damage.rsi/LLeg_Brute_40.png # Resources/Textures/Mobs/Effects/brute_damage.rsi/RLeg_Brute_40.png # Resources/Textures/Objects/Devices/nuke.rsi/meta.json # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_deployed.png # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_exploding.png # Resources/Textures/Objects/Devices/nuke.rsi/nuclearbomb_timing.png # Resources/Textures/Objects/Misc/books.rsi/meta.json # Resources/Textures/Objects/Misc/bureaucracy.rsi/paper_stamp-lawyer.png # Resources/Textures/Objects/Storage/boxes.rsi/meta.json # Resources/Textures/Objects/Tools/t-ray.rsi/tray-off.png # Resources/Textures/Objects/Tools/t-ray.rsi/tray-on.png # Resources/Textures/Objects/Weapons/Guns/Battery/mini-ebow.rsi/bolt.png # Resources/Textures/Structures/Doors/Airlocks/Standard/external.rsi/emergency_open_unlit.png # Resources/Textures/Structures/Doors/Airlocks/Standard/shuttle_syndicate.rsi/emergency_open_unlit.png # Resources/Textures/Structures/Doors/Windoors/plasma.rsi/emergency_unlit.png # Resources/Textures/Structures/Doors/Windoors/uranium.rsi/emergency_unlit.png # Resources/Textures/Structures/Power/Generation/Singularity/emitter.rsi/locked.png # Resources/Textures/Tiles/attributions.yml # Resources/Textures/Tiles/shuttleblue.png # Resources/Textures/Tiles/shuttleorange.png # Resources/Textures/Tiles/shuttlepurple.png # Resources/Textures/Tiles/shuttlered.png # Resources/Textures/Tiles/shuttlewhite.png # Resources/Textures/White/Fluff/DOOMMAX/cap_cap.rsi/meta.json # Resources/Textures/White/Fluff/HSKveez/hardsuit.rsi/meta.json # Resources/Textures/White/Fluff/Vtergot/strictgloves.rsi/meta.json # Resources/clientCommandPerms.yml # Resources/migration.yml
537 lines
24 KiB
C#
537 lines
24 KiB
C#
using Content.Server.Administration.Logs;
|
|
using Content.Server.Administration.Managers;
|
|
using Content.Server.Administration.UI;
|
|
using Content.Server.Disposal.Tube;
|
|
using Content.Server.Disposal.Tube.Components;
|
|
using Content.Server.EUI;
|
|
using Content.Server.GameTicking;
|
|
using Content.Server.Ghost.Roles;
|
|
using Content.Server.Mind;
|
|
using Content.Server.Mind.Commands;
|
|
using Content.Server.Prayer;
|
|
using Content.Server.Station.Systems;
|
|
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
|
using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
|
|
using Content.Shared.Administration;
|
|
using Content.Shared.Chemistry.Components.SolutionManager;
|
|
using Content.Shared.Chemistry.EntitySystems;
|
|
using Content.Shared.Configurable;
|
|
using Content.Shared.Database;
|
|
using Content.Shared.Examine;
|
|
using Content.Shared.GameTicking;
|
|
using Content.Shared.Inventory;
|
|
using Content.Shared.Mind.Components;
|
|
using Content.Shared.Popups;
|
|
using Content.Shared.Verbs;
|
|
using Robust.Server.Console;
|
|
using Robust.Server.GameObjects;
|
|
using Robust.Shared.Console;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Map.Components;
|
|
using Robust.Shared.Player;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Timing;
|
|
using Robust.Shared.Toolshed;
|
|
using Robust.Shared.Utility;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using Robust.Shared.Physics.Components;
|
|
using static Content.Shared.Configurable.ConfigurationComponent;
|
|
|
|
namespace Content.Server.Administration.Systems
|
|
{
|
|
/// <summary>
|
|
/// System to provide various global admin/debug verbs
|
|
/// </summary>
|
|
public sealed partial class AdminVerbSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IConGroupController _groupController = default!;
|
|
[Dependency] private readonly IConsoleHost _console = default!;
|
|
[Dependency] private readonly IAdminManager _adminManager = default!;
|
|
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
[Dependency] private readonly AdminSystem _adminSystem = default!;
|
|
[Dependency] private readonly DisposalTubeSystem _disposalTubes = default!;
|
|
[Dependency] private readonly EuiManager _euiManager = default!;
|
|
[Dependency] private readonly GameTicker _ticker = default!;
|
|
[Dependency] private readonly GhostRoleSystem _ghostRoleSystem = default!;
|
|
[Dependency] private readonly ArtifactSystem _artifactSystem = default!;
|
|
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
|
|
[Dependency] private readonly PrayerSystem _prayerSystem = default!;
|
|
[Dependency] private readonly EuiManager _eui = default!;
|
|
[Dependency] private readonly MindSystem _mindSystem = default!;
|
|
[Dependency] private readonly ToolshedManager _toolshed = default!;
|
|
[Dependency] private readonly RejuvenateSystem _rejuvenate = default!;
|
|
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
|
[Dependency] private readonly StationSystem _stations = default!;
|
|
[Dependency] private readonly StationSpawningSystem _spawning = default!;
|
|
[Dependency] private readonly ExamineSystemShared _examine = default!;
|
|
|
|
private readonly Dictionary<ICommonSession, List<EditSolutionsEui>> _openSolutionUis = new();
|
|
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<GetVerbsEvent<Verb>>(GetVerbs);
|
|
SubscribeLocalEvent<RoundRestartCleanupEvent>(Reset);
|
|
SubscribeLocalEvent<SolutionContainerManagerComponent, SolutionContainerChangedEvent>(OnSolutionChanged);
|
|
}
|
|
|
|
private void GetVerbs(GetVerbsEvent<Verb> ev)
|
|
{
|
|
AddAdminVerbs(ev);
|
|
AddDebugVerbs(ev);
|
|
AddSmiteVerbs(ev);
|
|
AddTricksVerbs(ev);
|
|
AddAntagVerbs(ev);
|
|
}
|
|
|
|
private void AddAdminVerbs(GetVerbsEvent<Verb> args)
|
|
{
|
|
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
|
return;
|
|
|
|
var player = actor.PlayerSession;
|
|
|
|
if (_adminManager.HasAdminFlag(player, AdminFlags.Admin))
|
|
{
|
|
Verb mark = new();
|
|
mark.Text = Loc.GetString("toolshed-verb-mark");
|
|
mark.Message = Loc.GetString("toolshed-verb-mark-description");
|
|
mark.Category = VerbCategory.Admin;
|
|
mark.Act = () => _toolshed.InvokeCommand(player, "=> $marked", Enumerable.Repeat(args.Target, 1), out _);
|
|
mark.Impact = LogImpact.Low;
|
|
args.Verbs.Add(mark);
|
|
|
|
if (TryComp(args.Target, out ActorComponent? targetActor))
|
|
{
|
|
// AdminHelp
|
|
Verb verb = new();
|
|
verb.Text = Loc.GetString("ahelp-verb-get-data-text");
|
|
verb.Category = VerbCategory.Admin;
|
|
verb.Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/gavel.svg.192dpi.png"));
|
|
verb.Act = () =>
|
|
_console.RemoteExecuteCommand(player, $"openahelp \"{targetActor.PlayerSession.UserId}\"");
|
|
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.Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/pray.svg.png"));
|
|
prayerVerb.Act = () =>
|
|
{
|
|
_quickDialog.OpenDialog(player, "Subtle Message", "Message", "Popup Message", (string message, string popupMessage) =>
|
|
{
|
|
_prayerSystem.SendSubtleMessage(targetActor.PlayerSession, player, 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
|
|
{
|
|
Priority = -1, // This is just so it doesn't change position in the menu between freeze/unfreeze.
|
|
Text = frozen
|
|
? Loc.GetString("admin-verbs-unfreeze")
|
|
: Loc.GetString("admin-verbs-freeze"),
|
|
Category = VerbCategory.Admin,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/snow.svg.192dpi.png")),
|
|
Act = () =>
|
|
{
|
|
if (frozen)
|
|
RemComp<AdminFrozenComponent>(args.Target);
|
|
else
|
|
EnsureComp<AdminFrozenComponent>(args.Target);
|
|
},
|
|
Impact = LogImpact.Medium,
|
|
});
|
|
|
|
// Erase
|
|
args.Verbs.Add(new Verb
|
|
{
|
|
Text = Loc.GetString("admin-verbs-erase"),
|
|
Message = Loc.GetString("admin-verbs-erase-description"),
|
|
Category = VerbCategory.Admin,
|
|
Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png")),
|
|
Act = () =>
|
|
{
|
|
_adminSystem.Erase(targetActor.PlayerSession);
|
|
},
|
|
Impact = LogImpact.Extreme,
|
|
ConfirmationPopup = true
|
|
});
|
|
|
|
// Respawn
|
|
args.Verbs.Add(new Verb()
|
|
{
|
|
Text = Loc.GetString("admin-player-actions-respawn"),
|
|
Category = VerbCategory.Admin,
|
|
Act = () =>
|
|
{
|
|
_console.ExecuteCommand(player, $"respawn {targetActor.PlayerSession.Name}");
|
|
},
|
|
ConfirmationPopup = true,
|
|
// No logimpact as the command does it internally.
|
|
});
|
|
|
|
// Spawn - Like respawn but on the spot.
|
|
args.Verbs.Add(new Verb()
|
|
{
|
|
Text = Loc.GetString("admin-player-actions-spawn"),
|
|
Category = VerbCategory.Admin,
|
|
Act = () =>
|
|
{
|
|
if (!_transformSystem.TryGetMapOrGridCoordinates(args.Target, out var coords))
|
|
{
|
|
_popup.PopupEntity(Loc.GetString("admin-player-spawn-failed"), args.User, args.User);
|
|
return;
|
|
}
|
|
|
|
var stationUid = _stations.GetOwningStation(args.Target);
|
|
|
|
var profile = _ticker.GetPlayerProfile(targetActor.PlayerSession);
|
|
var mobUid = _spawning.SpawnPlayerMob(coords.Value, null, profile, stationUid);
|
|
var targetMind = _mindSystem.GetMind(args.Target);
|
|
|
|
if (targetMind != null)
|
|
{
|
|
_mindSystem.TransferTo(targetMind.Value, mobUid);
|
|
}
|
|
},
|
|
ConfirmationPopup = true,
|
|
Impact = LogImpact.High,
|
|
});
|
|
|
|
// Clone - Spawn but without the mind transfer, also spawns at the user's coordinates not the target's
|
|
args.Verbs.Add(new Verb()
|
|
{
|
|
Text = Loc.GetString("admin-player-actions-clone"),
|
|
Category = VerbCategory.Admin,
|
|
Act = () =>
|
|
{
|
|
if (!_transformSystem.TryGetMapOrGridCoordinates(args.User, out var coords))
|
|
{
|
|
_popup.PopupEntity(Loc.GetString("admin-player-spawn-failed"), args.User, args.User);
|
|
return;
|
|
}
|
|
|
|
var stationUid = _stations.GetOwningStation(args.Target);
|
|
|
|
var profile = _ticker.GetPlayerProfile(targetActor.PlayerSession);
|
|
_spawning.SpawnPlayerMob(coords.Value, null, profile, stationUid);
|
|
},
|
|
ConfirmationPopup = true,
|
|
Impact = LogImpact.High,
|
|
});
|
|
}
|
|
|
|
// Admin Logs
|
|
if (_adminManager.HasAdminFlag(player, AdminFlags.Logs))
|
|
{
|
|
Verb logsVerbEntity = new()
|
|
{
|
|
Priority = -2,
|
|
Text = Loc.GetString("admin-verbs-admin-logs-entity"),
|
|
Category = VerbCategory.Admin,
|
|
Act = () =>
|
|
{
|
|
var ui = new AdminLogsEui();
|
|
_eui.OpenEui(ui, player);
|
|
ui.SetLogFilter(search:args.Target.Id.ToString());
|
|
},
|
|
Impact = LogImpact.Low
|
|
};
|
|
args.Verbs.Add(logsVerbEntity);
|
|
}
|
|
|
|
// TeleportTo
|
|
args.Verbs.Add(new Verb
|
|
{
|
|
Text = Loc.GetString("admin-verbs-teleport-to"),
|
|
Category = VerbCategory.Admin,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/open.svg.192dpi.png")),
|
|
Act = () =>
|
|
{
|
|
_console.ExecuteCommand(player, $"tpto {GetNetEntity(args.Target)}");
|
|
},
|
|
Impact = LogImpact.Low
|
|
});
|
|
|
|
// TeleportHere
|
|
args.Verbs.Add(new Verb
|
|
{
|
|
Text = Loc.GetString("admin-verbs-teleport-here"),
|
|
Category = VerbCategory.Admin,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/close.svg.192dpi.png")),
|
|
Act = () =>
|
|
{
|
|
if (HasComp<MapGridComponent>(args.Target))
|
|
{
|
|
if (player.AttachedEntity != null)
|
|
{
|
|
var mapPos = _transformSystem.GetMapCoordinates(player.AttachedEntity.Value);
|
|
if (TryComp(args.Target, out PhysicsComponent? targetPhysics))
|
|
{
|
|
var offset = targetPhysics.LocalCenter;
|
|
var rotation = _transformSystem.GetWorldRotation(args.Target);
|
|
offset = rotation.RotateVec(offset);
|
|
|
|
mapPos = mapPos.Offset(-offset);
|
|
}
|
|
|
|
_console.ExecuteCommand(player, $"tpgrid {GetNetEntity(args.Target)} {mapPos.X} {mapPos.Y} {mapPos.MapId}");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
_console.ExecuteCommand(player, $"tpto {args.User} {args.Target}");
|
|
}
|
|
},
|
|
Impact = LogImpact.Low
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
private void AddDebugVerbs(GetVerbsEvent<Verb> args)
|
|
{
|
|
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
|
return;
|
|
|
|
var player = actor.PlayerSession;
|
|
|
|
// Delete verb
|
|
if (_toolshed.ActivePermissionController?.CheckInvokable(new CommandSpec(_toolshed.DefaultEnvironment.GetCommand("delete"), null), player, out _) ?? false)
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("delete-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/delete_transparent.svg.192dpi.png")),
|
|
Act = () => EntityManager.DeleteEntity(args.Target),
|
|
Impact = LogImpact.Medium,
|
|
ConfirmationPopup = true
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Rejuvenate verb
|
|
if (_toolshed.ActivePermissionController?.CheckInvokable(new CommandSpec(_toolshed.DefaultEnvironment.GetCommand("rejuvenate"), null), player, out _) ?? false)
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("rejuvenate-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/rejuvenate.svg.192dpi.png")),
|
|
Act = () => _rejuvenate.PerformRejuvenate(args.Target),
|
|
Impact = LogImpact.Medium
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Control mob verb
|
|
if (_toolshed.ActivePermissionController?.CheckInvokable(new CommandSpec(_toolshed.DefaultEnvironment.GetCommand("mind"), "control"), player, out _) ?? false &&
|
|
args.User != args.Target)
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("control-mob-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
// TODO VERB ICON control mob icon
|
|
Act = () =>
|
|
{
|
|
_mindSystem.ControlMob(args.User, args.Target);
|
|
},
|
|
Impact = LogImpact.High,
|
|
ConfirmationPopup = true
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// XenoArcheology
|
|
if (_adminManager.IsAdmin(player) && TryComp<ArtifactComponent>(args.Target, out var artifact))
|
|
{
|
|
// make artifact always active (by adding timer trigger)
|
|
args.Verbs.Add(new Verb()
|
|
{
|
|
Text = Loc.GetString("artifact-verb-make-always-active"),
|
|
Category = VerbCategory.Debug,
|
|
Act = () => EntityManager.AddComponent<ArtifactTimerTriggerComponent>(args.Target),
|
|
Disabled = EntityManager.HasComponent<ArtifactTimerTriggerComponent>(args.Target),
|
|
Impact = LogImpact.High
|
|
});
|
|
|
|
// force to activate artifact ignoring timeout
|
|
args.Verbs.Add(new Verb()
|
|
{
|
|
Text = Loc.GetString("artifact-verb-activate"),
|
|
Category = VerbCategory.Debug,
|
|
Act = () => _artifactSystem.ForceActivateArtifact(args.Target, component: artifact),
|
|
Impact = LogImpact.High
|
|
});
|
|
}
|
|
|
|
// Make Sentient verb
|
|
if (_groupController.CanCommand(player, "makesentient") &&
|
|
args.User != args.Target &&
|
|
!EntityManager.HasComponent<MindContainerComponent>(args.Target))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("make-sentient-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/sentient.svg.192dpi.png")),
|
|
Act = () => MakeSentientCommand.MakeSentient(args.Target, EntityManager),
|
|
Impact = LogImpact.Medium
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Set clothing verb
|
|
if (_groupController.CanCommand(player, "setoutfit") &&
|
|
EntityManager.HasComponent<InventoryComponent>(args.Target))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("set-outfit-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")),
|
|
Act = () => _euiManager.OpenEui(new SetOutfitEui(GetNetEntity(args.Target)), player),
|
|
Impact = LogImpact.Medium
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// In range unoccluded verb
|
|
if (_groupController.CanCommand(player, "inrangeunoccluded"))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("in-range-unoccluded-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
|
Act = () =>
|
|
{
|
|
|
|
var message = _examine.InRangeUnOccluded(args.User, args.Target)
|
|
? Loc.GetString("in-range-unoccluded-verb-on-activate-not-occluded")
|
|
: Loc.GetString("in-range-unoccluded-verb-on-activate-occluded");
|
|
|
|
_popup.PopupEntity(message, args.Target, args.User);
|
|
}
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Get Disposal tube direction verb
|
|
if (_groupController.CanCommand(player, "tubeconnections") &&
|
|
EntityManager.TryGetComponent(args.Target, out DisposalTubeComponent? tube))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("tube-direction-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/information.svg.192dpi.png")),
|
|
Act = () => _disposalTubes.PopupDirections(args.Target, tube, args.User)
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Make ghost role verb
|
|
if (_groupController.CanCommand(player, "makeghostrole") &&
|
|
!(EntityManager.GetComponentOrNull<MindContainerComponent>(args.Target)?.HasMind ?? false))
|
|
{
|
|
Verb verb = new();
|
|
verb.Text = Loc.GetString("make-ghost-role-verb-get-data-text");
|
|
verb.Category = VerbCategory.Debug;
|
|
// TODO VERB ICON add ghost icon
|
|
// Where is the national park service icon for haunted forests?
|
|
verb.Act = () => _ghostRoleSystem.OpenMakeGhostRoleEui(player, args.Target);
|
|
verb.Impact = LogImpact.Medium;
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
if (_groupController.CanAdminMenu(player) &&
|
|
EntityManager.TryGetComponent(args.Target, out ConfigurationComponent? config))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("configure-verb-get-data-text"),
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/settings.svg.192dpi.png")),
|
|
Category = VerbCategory.Debug,
|
|
Act = () => _uiSystem.TryOpen(args.Target, ConfigurationUiKey.Key, actor.PlayerSession)
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
|
|
// Add verb to open Solution Editor
|
|
if (_groupController.CanCommand(player, "addreagent") &&
|
|
EntityManager.HasComponent<SolutionContainerManagerComponent>(args.Target))
|
|
{
|
|
Verb verb = new()
|
|
{
|
|
Text = Loc.GetString("edit-solutions-verb-get-data-text"),
|
|
Category = VerbCategory.Debug,
|
|
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/spill.svg.192dpi.png")),
|
|
Act = () => OpenEditSolutionsEui(player, args.Target),
|
|
Impact = LogImpact.Medium // maybe high depending on WHAT reagents they add...
|
|
};
|
|
args.Verbs.Add(verb);
|
|
}
|
|
}
|
|
|
|
#region SolutionsEui
|
|
private void OnSolutionChanged(Entity<SolutionContainerManagerComponent> entity, ref SolutionContainerChangedEvent args)
|
|
{
|
|
foreach (var list in _openSolutionUis.Values)
|
|
{
|
|
foreach (var eui in list)
|
|
{
|
|
if (eui.Target == entity.Owner)
|
|
eui.StateDirty();
|
|
}
|
|
}
|
|
}
|
|
|
|
public void OpenEditSolutionsEui(ICommonSession session, EntityUid uid)
|
|
{
|
|
if (session.AttachedEntity == null)
|
|
return;
|
|
|
|
var eui = new EditSolutionsEui(uid);
|
|
_euiManager.OpenEui(eui, session);
|
|
eui.StateDirty();
|
|
|
|
if (!_openSolutionUis.ContainsKey(session)) {
|
|
_openSolutionUis[session] = new List<EditSolutionsEui>();
|
|
}
|
|
|
|
_openSolutionUis[session].Add(eui);
|
|
}
|
|
|
|
public void OnEditSolutionsEuiClosed(ICommonSession session, EditSolutionsEui eui)
|
|
{
|
|
_openSolutionUis[session].Remove(eui);
|
|
if (_openSolutionUis[session].Count == 0)
|
|
_openSolutionUis.Remove(session);
|
|
}
|
|
|
|
private void Reset(RoundRestartCleanupEvent ev)
|
|
{
|
|
foreach (var euis in _openSolutionUis.Values)
|
|
{
|
|
foreach (var eui in euis.ToList())
|
|
{
|
|
eui.Close();
|
|
}
|
|
}
|
|
_openSolutionUis.Clear();
|
|
}
|
|
#endregion
|
|
}
|
|
}
|