]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Reduced SalvageStructureComponent to atoms. (#39400)
authorKyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Tue, 5 Aug 2025 19:10:17 +0000 (15:10 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Aug 2025 19:10:17 +0000 (21:10 +0200)
* commit

* whoopsie daisy

* Update SpawnSalvageMissionJob.cs

* Update SpawnSalvageMissionJob.cs

* cleanup

Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs [deleted file]
Content.Server/Salvage/SalvageSystem.Expeditions.cs
Content.Server/Salvage/SpawnSalvageMissionJob.cs
Resources/Locale/en-US/procedural/expeditions.ftl

diff --git a/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs b/Content.Server/Salvage/Expeditions/SalvageStructureComponent.cs
deleted file mode 100644 (file)
index f79d334..0000000
+++ /dev/null
@@ -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
-{
-
-}
index aa31c465f86b0eac8e41b1eaf21cf04203a3e8c9..adc97ac82423990f16a7af2015a08f609982e4af 100644 (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"));
-    }
 }
index 75b22598f9b4ae237bcd501f55eb58581b0c08ea..f212fa4a833474aa225c3da14bc3818f2cfb7b38 100644 (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;
index 56776e351d2bd06d9e8ed4e8ce776c18907c93d1..f6e9391043fdba1a91a90a0718189f10a3da6d96 100644 (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: