-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DeltaV-Station:master' into Elegance
- Loading branch information
Showing
138 changed files
with
6,110 additions
and
3,377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
Content.Server/Nyanotrasen/Abilities/Borgs/FabricateCandyComponent.cs
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
Content.Server/Nyanotrasen/Abilities/Borgs/FabricateCandySystem.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using System.Linq; | ||
using Content.Server.Administration; | ||
using Content.Shared._DV.FeedbackOverwatch; | ||
using Content.Shared.Administration; | ||
using Robust.Shared.Console; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server._DV.FeedbackPopup; | ||
|
||
[AdminCommand(AdminFlags.Server)] | ||
public sealed class FeedbackPopupCommand : LocalizedEntityCommands | ||
{ | ||
[Dependency] private readonly IPrototypeManager _proto = default!; | ||
[Dependency] private readonly SharedFeedbackOverwatchSystem _feedback = default!; | ||
|
||
public override string Command => Loc.GetString("feedbackpopup-command-name"); | ||
|
||
public override void Execute(IConsoleShell shell, string argStr, string[] args) | ||
{ | ||
if (args.Length != 2) | ||
{ | ||
shell.WriteError(Loc.GetString("feedbackpopup-command-error-wrong-arguments")); | ||
return; | ||
} | ||
|
||
if (!int.TryParse(args[0], out var entityUidInt)) | ||
{ | ||
shell.WriteError(Loc.GetString("feedbackpopup-command-error-invalid-uid")); | ||
return; | ||
} | ||
|
||
var netEnt = new NetEntity(entityUidInt); | ||
|
||
if (!EntityManager.TryGetEntity(netEnt, out var target)) | ||
{ | ||
shell.WriteLine(Loc.GetString("feedbackpopup-command-error-entity-not-found")); | ||
return; | ||
} | ||
|
||
if (!_proto.HasIndex<FeedbackPopupPrototype>(args[1])) | ||
{ | ||
shell.WriteError(Loc.GetString("feedbackpopup-command-error-invalid-proto")); | ||
return; | ||
} | ||
|
||
if (!_feedback.SendPopup(target, args[1])) | ||
{ | ||
shell.WriteError(Loc.GetString("feedbackpopup-command-error-popup-send-fail")); | ||
return; | ||
} | ||
|
||
shell.WriteLine(Loc.GetString("feedbackpopup-command-success")); | ||
} | ||
|
||
public override CompletionResult GetCompletion(IConsoleShell shell, string[] args) | ||
{ | ||
if (args.Length == 1) | ||
{ | ||
return CompletionResult.FromHint(Loc.GetString("feedbackpopup-command-hint-playerUid")); | ||
} | ||
|
||
if (args.Length == 2) | ||
{ | ||
return CompletionResult.FromHintOptions(_feedback.FeedbackPopupProtoIds, Loc.GetString("feedbackpopup-command-hint-protoId")); | ||
} | ||
return CompletionResult.Empty; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.