Salvage Job Board (#37549)
* Salvage Job Board * More development * Small boy * Computer yaml (partial) * UI * Rank unlock logic * Job label printing * appraisal tool integration * Jobs * add board to QM locker * boom! * command desc * mild rewording * ackh, mein pr ist brohken
This commit is contained in:
22
Content.Server/Salvage/JobBoard/JobBoardCommands.cs
Normal file
22
Content.Server/Salvage/JobBoard/JobBoardCommands.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Cargo.Prototypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Toolshed;
|
||||
|
||||
namespace Content.Server.Salvage.JobBoard;
|
||||
|
||||
[ToolshedCommand, AdminCommand(AdminFlags.Debug)]
|
||||
public sealed class JobBoardCommand : ToolshedCommand
|
||||
{
|
||||
/// <summary> Completes a bounty automatically. </summary>
|
||||
[CommandImplementation("completeJob")]
|
||||
public void CompleteJob([PipedArgument] EntityUid station, ProtoId<CargoBountyPrototype> job)
|
||||
{
|
||||
if (!TryComp<SalvageJobsDataComponent>(station, out var salvageJobData))
|
||||
return;
|
||||
|
||||
var sys = EntityManager.System<SalvageJobBoardSystem>();
|
||||
sys.TryCompleteSalvageJob((station, salvageJobData), job);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user