Establish mother's letter request in the first call

This commit is contained in:
Codex
2026-10-30 14:23:05 +02:00
parent 69d608765c
commit d1c1375395
26 changed files with 458 additions and 326 deletions
@@ -8,7 +8,28 @@ func run(qa: RefCounted) -> void:
qa.check(not game.facts.has("mail") and not game.facts.has("code"),"Chapter alone grants no letter or code: " + str(number))
qa.check(game.action_button("read_mail") == null and game.action_button("safe") == null,"Unheard letter and safe stay hidden: " + str(number))
qa.check("call_04_k" not in game.heard and "call_05_k" not in game.heard,"No knowledgeable opening on an empty profile: " + str(number))
qa.check("письм" not in game.action_button("mail_hint").text.to_lower(),"Discovery choice does not reveal the letter")
qa.check(game.action_button("mail_hint") == null,"No reason to bring up email without mother's earlier request")
qa.start(1)
var request_at := 0.0
for beat in game.story.intro:
if beat.line == "intro_02": request_at = beat.at
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.elapsed < game.story.timeline.alarm,"Letter request is heard before the siren")
qa.click("memory")
await qa.capture("phone-first-letter-memory")
qa.check(game.memory_content.text.contains("Попросила Катю помочь"),"Memory records why Katya will return to the letter")
qa.click("close_memory")
qa.finish("flat")
qa.click("next")
qa.check(game.chapter == 2 and game.action_button("mail_hint") != null,"First call gives a reason to ask about the letter in call two")
qa.check(game.action_button("read_mail") == null,"Remembering a request does not reveal contents")
qa.perform("mail_hint")
qa.perform("read_mail")
qa.check(game.facts.has("code") and game.elapsed < 45,"Motivated second-call route reads the code before blackout")
qa.start(2)
qa.click("memory")
@@ -33,7 +54,7 @@ func run(qa: RefCounted) -> void:
qa.check(game.memory_content.get_parsed_text().contains("правом кармане"),"Learned knowledge is visible in the notebook")
qa.click("close_memory")
qa.start(2)
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.heard.has("mail_hint_k") and game.heard.has("mail_hint_m"),"Letter discovery is a complete conversation")
@@ -88,3 +109,14 @@ func run(qa: RefCounted) -> void:
qa.click("close_memory")
var legacy: Dictionary = game.Profile.valid_flags({"keys":true,"mail":true,"code":true},game.story.facts)
qa.check(not legacy.has("keys_exact") and legacy.has("code"),"Legacy guessed keys are not upgraded to confirmed knowledge")
var previous_facts: Dictionary = game.facts.duplicate()
var previous_completed: int = game.completed
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
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")
game.facts = previous_facts
game.completed = previous_completed