|
4 | 4 | using Content.Server.Disposal.Tube; |
5 | 5 | using Content.Server.EUI; |
6 | 6 | using Content.Server.Ghost.Roles; |
7 | | -using Content.Server.Mind; |
8 | 7 | using Content.Server.Mind.Commands; |
| 8 | +using Content.Server.Mind; |
9 | 9 | using Content.Server.Prayer; |
| 10 | +using Content.Server.Silicons.Laws; |
10 | 11 | using Content.Server.Station.Systems; |
11 | 12 | using Content.Shared.Administration; |
12 | 13 | using Content.Shared.Chemistry.Components.SolutionManager; |
|
15 | 16 | using Content.Shared.Database; |
16 | 17 | using Content.Shared.Examine; |
17 | 18 | using Content.Shared.GameTicking; |
| 19 | +using Content.Shared.Hands.Components; |
18 | 20 | using Content.Shared.Inventory; |
19 | 21 | using Content.Shared.Mind.Components; |
| 22 | +using Content.Shared.Movement.Components; |
20 | 23 | using Content.Shared.Popups; |
| 24 | +using Content.Shared.Silicons.Laws.Components; |
| 25 | +using Content.Shared.Silicons.StationAi; |
21 | 26 | using Content.Shared.Verbs; |
22 | 27 | using Robust.Server.Console; |
23 | 28 | using Robust.Server.GameObjects; |
| 29 | +using Robust.Server.Player; |
24 | 30 | using Robust.Shared.Console; |
25 | 31 | using Robust.Shared.Map.Components; |
| 32 | +using Robust.Shared.Physics.Components; |
26 | 33 | using Robust.Shared.Player; |
27 | 34 | using Robust.Shared.Prototypes; |
28 | 35 | using Robust.Shared.Timing; |
29 | 36 | using Robust.Shared.Toolshed; |
30 | 37 | using Robust.Shared.Utility; |
31 | 38 | using System.Linq; |
32 | | -using Content.Server.Silicons.Laws; |
33 | | -using Content.Shared.Movement.Components; |
34 | | -using Content.Shared.Silicons.Laws.Components; |
35 | | -using Robust.Server.Player; |
36 | | -using Content.Shared.Silicons.StationAi; |
37 | | -using Robust.Shared.Physics.Components; |
38 | 39 | using static Content.Shared.Configurable.ConfigurationComponent; |
39 | 40 |
|
40 | 41 | namespace Content.Server.Administration.Systems |
@@ -463,19 +464,34 @@ private void AddDebugVerbs(GetVerbsEvent<Verb> args) |
463 | 464 | args.Verbs.Add(verb); |
464 | 465 | } |
465 | 466 |
|
466 | | - // Set clothing verb |
467 | | - if (_groupController.CanCommand(player, "setoutfit") && |
468 | | - EntityManager.HasComponent<InventoryComponent>(args.Target)) |
| 467 | + if (TryComp<InventoryComponent>(args.Target, out var inventoryComponent)) |
469 | 468 | { |
470 | | - Verb verb = new() |
| 469 | + // Strip all verb |
| 470 | + if (_groupController.CanCommand(player, "stripall")) |
471 | 471 | { |
472 | | - Text = Loc.GetString("set-outfit-verb-get-data-text"), |
473 | | - Category = VerbCategory.Debug, |
474 | | - Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")), |
475 | | - Act = () => _euiManager.OpenEui(new SetOutfitEui(GetNetEntity(args.Target)), player), |
476 | | - Impact = LogImpact.Medium |
477 | | - }; |
478 | | - args.Verbs.Add(verb); |
| 472 | + args.Verbs.Add(new Verb |
| 473 | + { |
| 474 | + Text = Loc.GetString("strip-all-verb-get-data-text"), |
| 475 | + Category = VerbCategory.Debug, |
| 476 | + Icon = new SpriteSpecifier.Texture(new("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")), |
| 477 | + Act = () => _console.RemoteExecuteCommand(player, $"stripall \"{args.Target}\""), |
| 478 | + Impact = LogImpact.Medium |
| 479 | + }); |
| 480 | + } |
| 481 | + |
| 482 | + // set outfit verb |
| 483 | + if (_groupController.CanCommand(player, "setoutfit")) |
| 484 | + { |
| 485 | + Verb verb = new() |
| 486 | + { |
| 487 | + Text = Loc.GetString("set-outfit-verb-get-data-text"), |
| 488 | + Category = VerbCategory.Debug, |
| 489 | + Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/outfit.svg.192dpi.png")), |
| 490 | + Act = () => _euiManager.OpenEui(new SetOutfitEui(GetNetEntity(args.Target)), player), |
| 491 | + Impact = LogImpact.Medium |
| 492 | + }; |
| 493 | + args.Verbs.Add(verb); |
| 494 | + } |
479 | 495 | } |
480 | 496 |
|
481 | 497 | // In range unoccluded verb |
|
0 commit comments