Save The Tree implementation and acceptance work in progress
Preserve production code, regression fixtures, audio assets and provenance, test infrastructure, and the original-completion plan and progress ledger. Final game and Windows acceptance remain pending; excluded local artifacts and native experiments are not part of this snapshot.
This commit is contained in:
@@ -220,7 +220,7 @@ func _test_unreachable_staff_task_is_not_assigned() -> void:
|
||||
|
||||
func _test_shift_end_interrupts_and_fails_service() -> void:
|
||||
_reset_runtime(3314)
|
||||
var facility: FacilityInstance = _build_cafeteria()
|
||||
var facility: FacilityInstance = _build_cafeteria(true)
|
||||
if facility == null:
|
||||
return
|
||||
for staff_id: StringName in [&"short_cook", &"short_server"]:
|
||||
@@ -356,7 +356,7 @@ func _test_corrupt_cross_domain_snapshots_are_atomic() -> void:
|
||||
_expect(SimulationDigest.compute(_runtime.create_snapshot()) == before_digest, "dangling-Reservation rejection preserves the live digest")
|
||||
|
||||
|
||||
func _build_cafeteria() -> FacilityInstance:
|
||||
func _build_cafeteria(physical_kitchen_staff: bool = false) -> FacilityInstance:
|
||||
var build = _runtime.submit_command(
|
||||
&"build_facility",
|
||||
{&"definition_id": &"cafeteria", &"origin": Vector3i(-5, 0, WorldService.LAYER_FRONT)},
|
||||
@@ -371,6 +371,9 @@ func _build_cafeteria() -> FacilityInstance:
|
||||
var facility_id := StringName(facilities[0].get(&"instance_id", ""))
|
||||
var facility: FacilityInstance = _runtime.facility_service.get_instance(facility_id)
|
||||
_expect(facility != null, "completed cafeteria registers with FacilityService")
|
||||
if facility != null:
|
||||
var kitchen_setup: Dictionary = load("res://tests/fixtures/required_kitchen_setup.gd").ensure(_runtime, _clock, facility.instance_id, physical_kitchen_staff)
|
||||
_expect(bool(kitchen_setup.get(&"ok", false)), "public paid kitchen link uses scenario-selected physical or logical attendance")
|
||||
return facility
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user