Connect the spare-key story and add flashlight-dependent stair descent
This commit is contained in:
@@ -105,6 +105,7 @@ func finish(expected: String) -> void:
|
||||
var rule: Dictionary = game.story.line_rules.get(entry.line,{})
|
||||
for key in rule.get("facts",[]): check(key in entry.known,"Spoken line has prior evidence: " + entry.line + "/" + key)
|
||||
for key in rule.get("items",[]): check(key in entry.items,"Spoken line uses a held item: " + entry.line + "/" + key)
|
||||
for key in rule.get("missing",[]): check(key not in entry.items,"Spoken line respects missing item: " + entry.line + "/" + key)
|
||||
if rule.has("places"): check(entry.place in rule.places,"Spoken line matches current place: " + entry.line)
|
||||
results.append({"chapter": game.chapter, "outcome": game.outcome, "facts": game.facts.keys()})
|
||||
# Fast route checks skip the production epilogue; separate checks below
|
||||
@@ -271,7 +272,7 @@ func run(target: Node) -> void:
|
||||
DirAccess.make_dir_recursive_absolute(directory())
|
||||
check(game.UI_FONT.get_string_size("Позвонить Маме",0,-1,34).x > game.UI_FONT.base_font.get_string_size("Позвонить Маме",0,-1,34).x,"Cyrillic uses the bold variation rather than the regular fallback")
|
||||
check(game.story.chapters.size() == 10, "Ten chapters")
|
||||
check(game.story.lines.size() == 110, "All 110 spoken lines")
|
||||
check(game.story.lines.size() == 116, "All 116 spoken lines")
|
||||
for id in game.story.lines:
|
||||
check(game.voice_stream(id) != null and game.voice_length(id) > 0.1, "Playable audio " + id)
|
||||
var voices: Dictionary = JSON.parse_string(FileAccess.get_file_as_string("res://data/voice_manifest.json"))
|
||||
@@ -284,8 +285,8 @@ func run(target: Node) -> void:
|
||||
else:
|
||||
check(voices[id].provider == "ElevenLabs" and voices[id].voice_id == "5u41aNhyCU6hXOcjPPv0", "Carol assigned: " + id)
|
||||
carol_count += 1
|
||||
check(jessica_count == 52, "All 52 Katya lines use Jessica")
|
||||
check(carol_count == 58, "All 58 mother lines use Carol")
|
||||
check(jessica_count == 55, "All 55 Katya lines use Jessica")
|
||||
check(carol_count == 61, "All 61 mother lines use Carol")
|
||||
for id in game.story.lines:
|
||||
check(voices[id].text == game.story.lines[id].text,"Audio manifest matches corrected dialogue: " + id)
|
||||
check(game.voice_length("greeting") <= game.story.intro[0].at, "Greeting fits before prologue")
|
||||
@@ -748,6 +749,8 @@ func run(target: Node) -> void:
|
||||
game.qa_mode = true
|
||||
var continuity = load("res://scripts/phone_continuity_qa.gd").new()
|
||||
await continuity.run(self)
|
||||
var stairs_checks = load("res://scripts/phone_stairs_qa.gd").new()
|
||||
await stairs_checks.run(self)
|
||||
await realtime_final_check()
|
||||
if "--phone-real-time" in OS.get_cmdline_user_args():
|
||||
await realtime_check()
|
||||
|
||||
Reference in New Issue
Block a user