F1: power supply multiplies the resolved stat, it does not interpolate
PerformanceStat.Evaluate folded PowerSupply into the same Min/Max lerp factor as Heat/Durability/Quality, so zero supply bottomed out at Min instead of 0 (measured: a radiator at zero power still pumped 19-25% of full; three of Cut 7's eight authored terms had Min == Max and were completely inert, since lerp(x, x, anything) == x). PowerSupply terms are now accumulated into their own multiplier and applied to the fully-interpolated, fully-modified value instead of to the interpolation factor. The term still lives in PerformanceStat.Terms -- it is still authored per stat and still censused/validated the same way -- it is just no longer blended into `factor`. Corrected the comments that stated the old premise (Radiator.cs, Entity.cs, ItemData.cs's IStatContext.PowerSupplyFactor doc). Pinned in tests/Aetheria.Shared.Tests/PowerCurveTests.cs: APowerSupplyTermedStatWithNonzeroMinResolvesToExactlyZeroAtZeroSupply and AMinEqualsMaxStatStillRespondsToItsPowerSupplyTerm -- both fail under the reverted (lerp-based) mutation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e6609c45f3
commit
da5a710030
4 changed files with 72 additions and 10 deletions
|
|
@ -90,8 +90,10 @@ public class Radiator : Behavior, IAlwaysUpdatedBehavior, IInitializableBehavior
|
|||
// plain Evaluate() read, so a PumpedHeat stat carrying a PowerSupply term already pumps less under a
|
||||
// partial grant -- waste heat below is unaffected by the curve, so a starved radiator falls behind and
|
||||
// the ship heats up, which is the reduced-performance failure the ruling asks for instead of the pump
|
||||
// simply refusing to run. At true zero supply PumpedHeat itself resolves to 0 (pow(0, exponent) == 0),
|
||||
// so "produces nothing" already falls out of the curve below without a special case here.
|
||||
// simply refusing to run. F1 (docs/stats-and-power-cut.md, operator ruling 2026-09-19): PowerSupply is a
|
||||
// multiplier PerformanceStat.Evaluate applies to the whole resolved value, not a term blended into the
|
||||
// Min/Max interpolation, so at true zero supply PumpedHeat resolves to exactly 0 regardless of Min -- so
|
||||
// "produces nothing" already falls out of Evaluate() without a special case here.
|
||||
var pumpedHeat = PumpedHeat * max(itemTemperature - _data.TemperatureFloor, 0);
|
||||
|
||||
// Radiator temperature is below temperature floor, stop executing
|
||||
|
|
|
|||
Loading…
Reference in a new issue