mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
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:
1 parent
bcc82e1056
commit
d4ba72abf4
13 files changed
+418
-254
No files matched your search
@@ -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 :
|
||||
|
||||
Reference in new issue
Block a user