Chill bounties + fixes (#23411)
* Chill bounties + fixes * localize * fix arbitage
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Cargo.Systems;
|
||||
using Content.Server.Station.Components;
|
||||
using Content.Server.Station.Systems;
|
||||
using Content.Shared.Administration;
|
||||
@@ -15,6 +16,7 @@ namespace Content.Server.Station.Commands;
|
||||
public sealed class StationsCommand : ToolshedCommand
|
||||
{
|
||||
private StationSystem? _station;
|
||||
private CargoSystem? _cargo;
|
||||
|
||||
[CommandImplementation("list")]
|
||||
public IEnumerable<EntityUid> List()
|
||||
@@ -111,6 +113,15 @@ public sealed class StationsCommand : ToolshedCommand
|
||||
|
||||
_station.RenameStation(input, name.Evaluate(ctx)!);
|
||||
}
|
||||
|
||||
[CommandImplementation("rerollBounties")]
|
||||
public void RerollBounties([CommandInvocationContext] IInvocationContext ctx,
|
||||
[PipedArgument] EntityUid input)
|
||||
{
|
||||
_cargo ??= GetSys<CargoSystem>();
|
||||
|
||||
_cargo.RerollBountyDatabase(input);
|
||||
}
|
||||
}
|
||||
|
||||
public record struct OnlyOneStationsError : IConError
|
||||
|
||||
Reference in New Issue
Block a user