P06-02: Assert no SERVICE_SALE events during the natural outage

Review r1 noted the facility revenue balance is swept immediately; the event
check proves no sale directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Takeshi
2026-10-20 15:48:08 +09:00
co-authored by Claude Opus 5.5
parent f6f9c9c0d4
commit d743bd67b6
+1
View File
@@ -145,6 +145,7 @@ func _write() -> void:
_expect(_runtime.economy_service.get_balance(&"PLAYER_CASH") <= int(before["cash"]), "no income reaches the tower during the outage")
_expect(after["meals"] == before["meals"] and after["raw_food"] == before["raw_food"], "no production and no lost stock during the outage")
_expect(_events_since(started, [&"GUEST_SPAWNED", &"GUEST_AUTO_ARRIVED"]) == 0, "no admissions during the outage")
_expect(_events_since(started, [&"SERVICE_SALE", &"CASH_SWEEP"]) == 0, "no service sale or revenue sweep event during the outage")
_expect(_events_since(started, [&"WARP_TRAVELED"]) == 0, "no warp travel during the outage")
_expect(_events_since(started, [&"ELEVATOR_BOARDED"]) == 0, "no elevator boarding during the outage")
var departed := {}