From 5df467c9c6c2376aa4629070d4d355a891c93482 Mon Sep 17 00:00:00 2001
From: Kyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Date: Tue, 5 Aug 2025 15:10:17 -0400
Subject: [PATCH] Reduced SalvageStructureComponent to atoms. (#39400)
* commit
* whoopsie daisy
* Update SpawnSalvageMissionJob.cs
* Update SpawnSalvageMissionJob.cs
* cleanup
---
.../Salvage/Expeditions/SalvageStructureComponent.cs | 10 ----------
Content.Server/Salvage/SalvageSystem.Expeditions.cs | 11 -----------
Content.Server/Salvage/SpawnSalvageMissionJob.cs | 1 -
Resources/Locale/en-US/procedural/expeditions.ftl | 6 ------
4 files changed, 28 deletions(-)
delete mode 100644 Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs
diff --git a/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs b/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs
deleted file mode 100644
index f79d33412a..0000000000
--- a/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace Content.Server.Salvage.Expeditions.Structure;
-
-///
-/// Mission objective for salvage expeditions.
-///
-[RegisterComponent, Access(typeof(SalvageSystem))]
-public sealed partial class SalvageStructureComponent : Component
-{
-
-}
diff --git a/Content.Server/Salvage/SalvageSystem.Expeditions.cs b/Content.Server/Salvage/SalvageSystem.Expeditions.cs
index aa31c465f8..adc97ac824 100644
--- a/Content.Server/Salvage/SalvageSystem.Expeditions.cs
+++ b/Content.Server/Salvage/SalvageSystem.Expeditions.cs
@@ -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(OnExpeditionShutdown);
SubscribeLocalEvent(OnExpeditionGetState);
- SubscribeLocalEvent(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"));
- }
}
diff --git a/Content.Server/Salvage/SpawnSalvageMissionJob.cs b/Content.Server/Salvage/SpawnSalvageMissionJob.cs
index 75b22598f9..f212fa4a83 100644
--- a/Content.Server/Salvage/SpawnSalvageMissionJob.cs
+++ b/Content.Server/Salvage/SpawnSalvageMissionJob.cs
@@ -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;
diff --git a/Resources/Locale/en-US/procedural/expeditions.ftl b/Resources/Locale/en-US/procedural/expeditions.ftl
index 56776e351d..f6e9391043 100644
--- a/Resources/Locale/en-US/procedural/expeditions.ftl
+++ b/Resources/Locale/en-US/procedural/expeditions.ftl
@@ -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: