Connect the spare-key story and add flashlight-dependent stair descent

This commit is contained in:
Codex
2026-10-30 14:59:20 +02:00
parent d1c1375395
commit b572e0bf50
40 changed files with 1485 additions and 676 deletions
@@ -17,7 +17,7 @@ func run(qa: RefCounted) -> void:
qa.at(request_at+0.1)
qa.check(not game.facts.has("mail_request"),"Request is not remembered before mom finishes")
qa.at(game.speech_until+0.01)
qa.check(game.facts.has("mail_request") and not game.facts.has("mail") and not game.facts.has("code"),"First call establishes only an unopened important letter")
qa.check(game.facts.has("key_letter") and not game.facts.has("key_custody") and not game.facts.has("code"),"First call gives a reason to seek the key, not the safe's history or code")
qa.check(game.elapsed < game.story.timeline.alarm,"Letter request is heard before the siren")
qa.click("memory")
await qa.capture("phone-first-letter-memory")
@@ -56,7 +56,7 @@ func run(qa: RefCounted) -> void:
qa.start_with_letter(2)
qa.perform("mail_hint")
qa.check(game.facts.has("mail") and not game.facts.has("code"),"Email conversation reveals a marked letter but not its code")
qa.check(game.facts.has("key_custody") and not game.facts.has("code"),"Mother explains her neighbor's safe before Katya can request its code")
qa.check(game.heard.has("mail_hint_k") and game.heard.has("mail_hint_m"),"Letter discovery is a complete conversation")
qa.perform("read_mail")
qa.check(game.facts.has("code") and game.elapsed < 45,"Letter can be discovered and read before power loss")
@@ -80,7 +80,7 @@ func run(qa: RefCounted) -> void:
# A real test redial must retain knowledge before choosing its introduction.
game.qa_mode = false
game.begin_call(4,true,1,{"mail":true})
game.begin_call(4,true,1,{"key_custody":true})
qa.check(game.events[0].line == "call_04_k","Retained test knowledge selects the correct opening before dialogue starts")
game.qa_mode = true
@@ -114,9 +114,11 @@ func run(qa: RefCounted) -> void:
game.facts = {"lamp":true}
game.completed = 3
qa.check(game.continuation_chapter() == 1 and game.facts == {"lamp":true} and game.completed == 3,"Legacy profile hears the missing setup without losing progress")
game.facts["mail_request"] = true
game.facts["key_letter"] = true
qa.check(game.continuation_chapter() == 4,"Heard setup restores the saved continuation")
game.facts = {"mail":true}
qa.check(game.continuation_chapter() == 4,"Existing genuine letter knowledge remains valid")
qa.check(game.continuation_chapter() == 1,"Old generic letter knowledge does not invent the neighbor's story")
game.facts = {"mail_request":true,"mail":true,"code":true}
qa.check(game.opening_for(4).opening != "call_04_k" and game.opening_for(5).opening != "call_05_k","Old profiles do not speak the newly written provenance without hearing it")
game.facts = previous_facts
game.completed = previous_completed