diff --git a/Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs b/Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs index b8966db3255..23ed5b00561 100644 --- a/Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs +++ b/Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs @@ -59,6 +59,16 @@ private void OnSalvageClaimMessage(EntityUid uid, SalvageExpeditionConsoleCompon } // end of Frontier proximity check + // Frontier: check for FTL component - if one exists, the station won't be taken into FTL. + if (HasComp(grid)) + { + PlayDenySound(uid, component); + _popupSystem.PopupEntity(Loc.GetString("shuttle-ftl-recharge"), uid, PopupType.MediumCaution); + UpdateConsoles(data); // Sure, why not? + return; + } + // End Frontier + // Frontier change - disable coordinate disks for expedition missions //var cdUid = Spawn(CoordinatesDisk, Transform(uid).Coordinates); SpawnMission(missionparams, station.Value, null); @@ -96,6 +106,15 @@ private void UpdateConsoles(SalvageExpeditionDataComponent component) if (station != component.Owner) continue; + // Frontier: if we have a lingering FTL component, we cannot start a new mission + if (!TryComp(station, out var stationData) || + _station.GetLargestGrid(stationData) is not {Valid : true} grid || + HasComp(grid)) + { + state.Cooldown = true; //Hack: disable buttons + } + // End Frontier + _ui.SetUiState((uid, uiComp), SalvageConsoleUiKey.Expedition, state); } } @@ -114,6 +133,15 @@ private void UpdateConsole(Entity component) state = new SalvageExpeditionConsoleState(TimeSpan.Zero, false, true, 0, new List()); } + // Frontier: if we have a lingering FTL component, we cannot start a new mission + if (!TryComp(station, out var stationData) || + _station.GetLargestGrid(stationData) is not {Valid : true} grid || + HasComp(grid)) + { + state.Cooldown = true; //Hack: disable buttons + } + // End Frontier + _ui.SetUiState(component.Owner, SalvageConsoleUiKey.Expedition, state); } private void PlayDenySound(EntityUid uid, SalvageExpeditionConsoleComponent component) diff --git a/Content.Server/Salvage/SalvageSystem.Expeditions.cs b/Content.Server/Salvage/SalvageSystem.Expeditions.cs index c1cf7518b63..4ef23c62a2f 100644 --- a/Content.Server/Salvage/SalvageSystem.Expeditions.cs +++ b/Content.Server/Salvage/SalvageSystem.Expeditions.cs @@ -168,7 +168,8 @@ private void UpdateExpeditions() continue; comp.Cooldown = false; - comp.NextOffer += TimeSpan.FromSeconds(_cooldown); + //comp.NextOffer += TimeSpan.FromSeconds(_cooldown); // Frontier + comp.NextOffer = currentTime + TimeSpan.FromSeconds(_cooldown); // Frontier GenerateMissions(comp); UpdateConsoles(comp); } diff --git a/Resources/Locale/en-US/_NF/adventure/adventure.ftl b/Resources/Locale/en-US/_NF/adventure/adventure.ftl index 77c511dbfca..c572adf364a 100644 --- a/Resources/Locale/en-US/_NF/adventure/adventure.ftl +++ b/Resources/Locale/en-US/_NF/adventure/adventure.ftl @@ -18,6 +18,7 @@ shipyard-rules-default2 = Thank you for choosing Nanotrasen Security Forces. shuttle-ftl-proximity = Nearby objects too massive for FTL! +shuttle-ftl-recharge = FTL drives still spooling down! changelog-tab-title-Upstream = Upstream Changelog multiauth-already-connected = Already connected to Frontier Official servers. diff --git a/Resources/Locale/en-US/procedural/expeditions.ftl b/Resources/Locale/en-US/procedural/expeditions.ftl index a0192fabd32..dcfefe8ab5b 100644 --- a/Resources/Locale/en-US/procedural/expeditions.ftl +++ b/Resources/Locale/en-US/procedural/expeditions.ftl @@ -19,14 +19,15 @@ salvage-expedition-window-claim = Claim salvage-expedition-window-next = Next offer -# Expedition descriptions +# Frontier: Expedition descriptions salvage-expedition-desc-mining = Collect resources inside the area. # You will be taxed {$tax}% of the resources collected. salvage-expedition-desc-structure = {$count -> [one] Destroy {$count} {$structure} inside the area. - *[other] Destroy {$count} {$structure}s inside the area. + *[other] Destroy {$count} {MAKEPLURAL($structure)} inside the area. } salvage-expedition-desc-elimination = Kill a large and dangerous creature inside the area. +# End Frontier salvage-expedition-type-Mining = Mining salvage-expedition-type-Destruction = Destruction diff --git a/Resources/Prototypes/_NF/Entities/Structures/Specific/punks.yml b/Resources/Prototypes/_NF/Entities/Structures/Specific/punks.yml index 68981fa9d59..e74c78e8102 100644 --- a/Resources/Prototypes/_NF/Entities/Structures/Specific/punks.yml +++ b/Resources/Prototypes/_NF/Entities/Structures/Specific/punks.yml @@ -2,7 +2,7 @@ - type: entity parent: CarpStatue id: PunkPartySupplies - name: party supplies + name: party supply stash description: The only thing that can hold a gang together. components: - type: Sprite