feat: simplify ship construction
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user