feat: simplify ship construction

This commit is contained in:
2026-03-17 17:08:33 -04:00
parent d5d0a39244
commit 0ae53b76e8
2 changed files with 8 additions and 32 deletions

View File

@@ -229,8 +229,7 @@ public sealed partial class SimulationEngine
{
if (recipe.ShipOutputId is not null)
{
if (!world.ShipDefinitions.TryGetValue(recipe.ShipOutputId, out var shipDefinition)
|| !CanLaunchShipFromStation(station))
if (!world.ShipDefinitions.TryGetValue(recipe.ShipOutputId, out var shipDefinition))
{
return false;
}
@@ -387,8 +386,6 @@ public sealed partial class SimulationEngine
return 1f;
}
private static bool CanLaunchShipFromStation(StationRuntime station) =>
HasStationModules(station, "power-core", "ship-factory", "container-bay", "dock-bay-small");
private static bool FactionNeedsMoreWarships(SimulationWorld world, string factionId)
{