Shield reserve is authored: Capacity/RefillDuration/RestoreDuration, and a broken state
Operator ruling, 2026-09-19, supersedes Cut 4's derived reserve (EnergyUsage refilling every second, flagged as a guess). ShieldData now authors the reserve size and two recharge speeds directly; EnergyUsage stays the per-damage-point cost multiplier. A hit the reserve cannot fully cover now breaks the shield instead of a silent, charge-preserving refusal. Two follow-up rulings settle the fork the first left open: the breaking hit passes through in full (no partial absorption -- TakeHit never runs for it), and the reserve empties to zero on break so RestoreDuration means the same thing every time regardless of how full the shield was. InputCapacitorTests' shield fixture now authors the three new fields explicitly -- without them the reserve defaults to zero capacity and breaks on every hit. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
08c3bb8c64
commit
b0e67cb36f
2 changed files with 82 additions and 20 deletions
|
|
@ -65,7 +65,13 @@ public sealed class InputCapacitorTests : IDisposable
|
|||
{
|
||||
Name = "Shield", Hardpoint = HardpointType.Tool, Shape = new Shape(), Durability = 10,
|
||||
MinimumTemperature = 0, MaximumTemperature = 1000, OptimalTemperature = 280, PlateauWidth = 400,
|
||||
Behaviors = { new ShieldData { Efficiency = Constant(1), EnergyUsage = Constant(1) } }
|
||||
// Capacity/RefillDuration/RestoreDuration authored explicitly (shield reserve ruling, 2026-09-19):
|
||||
// ShieldData no longer derives its reserve size from EnergyUsage, so a fixture that only authors
|
||||
// Efficiency/EnergyUsage now gets a zero-capacity reserve that breaks on every hit. Capacity = 1
|
||||
// reproduces this fixture's pre-ruling reserve size exactly (EnergyUsage was 1); durations are
|
||||
// unused by the tests below (they never provoke a break here) but must be nonzero so RefreshReserve
|
||||
// never divides by a zero duration.
|
||||
Behaviors = { new ShieldData { Efficiency = Constant(1), EnergyUsage = Constant(1), Capacity = Constant(1), RefillDuration = Constant(1), RestoreDuration = Constant(1) } }
|
||||
});
|
||||
cache.FlushAsync().Wait();
|
||||
return cache;
|
||||
|
|
|
|||
Loading…
Reference in a new issue