P06-01: Fix review r01 findings for A06 reserve
Settle Mana raised above capacity between boundaries as recorded overflow instead of rejecting saves or latching a fault, exclude destroyed facilities from upkeep demand, and keep the depletion drill's outage sustained. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
65534cfd15
commit
f247d19325
@@ -34,7 +34,13 @@ func _initialize() -> void:
|
||||
var saved: Dictionary = cycle.create_snapshot()
|
||||
expect(not cycle.advance_to(370, 57, 63)[&"processed"] and cycle.create_snapshot() == saved, "same boundary never consumed twice")
|
||||
expect(not cycle.advance_to(360, 57, 63)[&"ok"], "time reversal rejected")
|
||||
expect(not cycle.advance_to(380, 301, 0)[&"ok"] and cycle.create_snapshot() == saved, "over-capacity reserve rejected without change")
|
||||
expect(not cycle.advance_to(380, -1, 0)[&"ok"] and cycle.create_snapshot() == saved, "negative reserve rejected without change")
|
||||
var high = Cycle.new()
|
||||
high.start_at(360)
|
||||
flow = high.advance_to(370, 525, 16)[&"flow"]
|
||||
expect(flow[&"after"] == 300 and flow[&"overflow"] == 229, "amount raised above capacity between boundaries settles with recorded overflow")
|
||||
var high_restored = Cycle.new()
|
||||
expect(high_restored.restore_snapshot(high.create_snapshot()), "over-capacity before survives snapshot validation")
|
||||
var skipped: Dictionary = cycle.advance_to(400, 57, 63)
|
||||
expect(skipped[&"boundaries"] == 3 and skipped[&"after"] == 0 and skipped[&"flow"][&"shortage"] == 43, "skipped boundaries settle in order")
|
||||
var restored = Cycle.new()
|
||||
|
||||
Reference in New Issue
Block a user