Reduced SalvageStructureComponent to atoms. (#39400)

* commit

* whoopsie daisy

* Update SpawnSalvageMissionJob.cs

* Update SpawnSalvageMissionJob.cs

* cleanup
This commit is contained in:
Kyle Tyo
2025-08-05 15:10:17 -04:00
committed by GitHub
parent d4c025567a
commit 5df467c9c6
4 changed files with 0 additions and 28 deletions

View File

@@ -1,10 +0,0 @@
namespace Content.Server.Salvage.Expeditions.Structure;
/// <summary>
/// Mission objective for salvage expeditions.
/// </summary>
[RegisterComponent, Access(typeof(SalvageSystem))]
public sealed partial class SalvageStructureComponent : Component
{
}

View File

@@ -1,17 +1,13 @@
using System.Linq;
using System.Threading;
using Content.Server.Salvage.Expeditions;
using Content.Server.Salvage.Expeditions.Structure;
using Content.Shared.CCVar;
using Content.Shared.Examine;
using Content.Shared.Random.Helpers;
using Content.Shared.Salvage.Expeditions;
using Content.Shared.Shuttles.Components;
using Robust.Shared.Audio;
using Robust.Shared.CPUJob.JobQueues;
using Robust.Shared.CPUJob.JobQueues.Queues;
using Robust.Shared.GameStates;
using Robust.Shared.Map;
namespace Content.Server.Salvage;
@@ -39,8 +35,6 @@ public sealed partial class SalvageSystem
SubscribeLocalEvent<SalvageExpeditionComponent, ComponentShutdown>(OnExpeditionShutdown);
SubscribeLocalEvent<SalvageExpeditionComponent, ComponentGetState>(OnExpeditionGetState);
SubscribeLocalEvent<SalvageStructureComponent, ExaminedEvent>(OnStructureExamine);
_cooldown = _configurationManager.GetCVar(CCVars.SalvageExpeditionCooldown);
Subs.CVar(_configurationManager, CCVars.SalvageExpeditionCooldown, SetCooldownChange);
}
@@ -189,9 +183,4 @@ public sealed partial class SalvageSystem
_salvageJobs.Add((job, cancelToken));
_salvageQueue.EnqueueJob(job);
}
private void OnStructureExamine(EntityUid uid, SalvageStructureComponent component, ExaminedEvent args)
{
args.PushMarkup(Loc.GetString("salvage-expedition-structure-examine"));
}
}

View File

@@ -11,7 +11,6 @@ using Content.Server.Ghost.Roles.Components;
using Content.Server.Parallax;
using Content.Server.Procedural;
using Content.Server.Salvage.Expeditions;
using Content.Server.Salvage.Expeditions.Structure;
using Content.Shared.Atmos;
using Content.Shared.Construction.EntitySystems;
using Content.Shared.Dataset;

View File

@@ -1,9 +1,3 @@
salvage-expedition-structure-examine = This is a [color=#B02E26]destruction[/color] objective
salvage-expedition-structure-remaining = {$count ->
[one] {$count} structure remaining.
*[other] {$count} structures remaining.
}
salvage-expedition-type = Mission
salvage-expedition-window-title = Salvage expeditions
salvage-expedition-window-difficulty = Difficulty: