fix(production): correct full-load capture and solver scaling

Stop capturing the transient miner output damper, apply the sandbox boost state to artificial stars as for launchers, and keep lens-free photon flows when no ray receiver is selected.

Scale the planner conservation check by each ledger row and normalize the simplex right-hand side so large rates no longer fail. Skip non-production objects before copying native settings, decode blueprints through the native paste path, and simplify analyzer mode resolution.

Update stale ProductionCheck expectations, add regression checks, and document the rules.
This commit is contained in:
soarqin committed 2026-10-25 14:23:52 +08:00
1 parent 426cdf8975
commit b1b6785572
13 files changed
+418 -254

No files matched your search

+6 -8
View File
@@ -57,17 +57,15 @@ public sealed class FuelGenerationAdapter : IProductionProcessAdapter
}
var boostFactor = 1.0;
if (building.FuelMask == 4)
var boostModeKey = SandboxBoost.ModeKey(building);
if (boostModeKey != null)
{
if (!operatingParameters.TryGetValue("Mode0", out var boostMode) ||
(boostMode != 0 && boostMode != 1))
{
diagnostic = new ProductionDiagnostic(ProductionDiagnosticCode.MissingOperatingParameter,
"Select the artificial star's native boost setting.", buildingItemId: building.ItemId);
if (!SandboxBoost.TryResolve(operatingParameters, boostModeKey, building.ItemId, out var boosted,
out diagnostic))
return false;
}
boostFactor = (boostMode == 1 ? 100 : 1) * fuel.StarOutputMultiplier;
// Artificial stars apply the sandbox boost and the strange annihilation fuel multiplier natively.
boostFactor = (boosted ? 100 : 1) * fuel.StarOutputMultiplier;
}
var proliferationFactor = mode == ProliferationMode.None ? 1 :