Establish mother's letter request in the first call
This commit is contained in:
@@ -359,6 +359,12 @@ func _unhandled_key_input(event: InputEvent) -> void:
|
||||
else:
|
||||
show_menu()
|
||||
|
||||
func continuation_chapter() -> int:
|
||||
# Old profiles without the new conversation must hear it, not receive an
|
||||
# invented memory. Existing discoveries and completed-call count stay intact.
|
||||
if not facts.has("mail_request") and not facts.has("mail"): return 1
|
||||
return mini(completed+1,10)
|
||||
|
||||
func show_menu() -> void:
|
||||
var box := menu_page("main")
|
||||
box.add_child(stage.centered("Не клади трубку",52,INK))
|
||||
@@ -372,7 +378,9 @@ func show_menu() -> void:
|
||||
menu_action(box,"Итоги звонка","outcome",show_outcome)
|
||||
menu_action(box,"Сообщения от подруги","ending_messages",show_messages)
|
||||
else:
|
||||
menu_action(box,"Позвонить маме" if completed == 0 else "Продолжить · звонок %d" % mini(completed + 1, 10),"start",func(): dial_call(mini(completed+1,10),false),true)
|
||||
var next_chapter := continuation_chapter()
|
||||
var start_text := "Позвонить маме" if completed == 0 else ("Первый разговор" if next_chapter == 1 else "Продолжить · звонок %d" % next_chapter)
|
||||
menu_action(box,start_text,"start",func(): dial_call(next_chapter,false),true)
|
||||
menu_action(box,"Проверка сцен","testing",show_test_menu)
|
||||
menu_action(box,"Звук и титры","settings",show_settings)
|
||||
menu_action(box,"Выйти из игры","quit",func(): get_tree().quit())
|
||||
@@ -835,7 +843,7 @@ func refresh_commands() -> void:
|
||||
var entry: Dictionary = story.chapters[chapter - 1]
|
||||
if not done.has("question") and line_allowed(entry.question):
|
||||
command_list.add_child(stage.chip("«"+str(story.lines[entry.question].text)+"»","question",func():choose_action("question")))
|
||||
var names := {"look":"У входной двери", "keys_search":"Найти ключи", "keys_fast":"Ключи в куртке", "lamp_search":"Поискать фонарь", "lamp_fast":"Повернуть батарейку", "mail_hint":"Спросить о почте", "read_mail":"Прочитать письмо", "safe":"Сейф · 0417", "front":"На площадку", "stairs":"Проверить лестницу", "side_try":"Боковая дверь", "side_open":"Ручку вверх и ключ", "inner":"Подальше от окон", "back":"Вернуться в квартиру", "neighbor":"Постучать соседке", "phone_test":"Проверить связь", "phone_shelf":"Телефон на полку", "speak_here":"Мам, я здесь", "speak_love":"Я люблю тебя"}
|
||||
var names := {"look":"У входной двери", "keys_search":"Найти ключи", "keys_fast":"Ключи в куртке", "lamp_search":"Поискать фонарь", "lamp_fast":"Повернуть батарейку", "mail_hint":"Помочь с письмом", "read_mail":"Прочитать письмо", "safe":"Сейф · 0417", "front":"На площадку", "stairs":"Проверить лестницу", "side_try":"Боковая дверь", "side_open":"Ручку вверх и ключ", "inner":"Подальше от окон", "back":"Вернуться в квартиру", "neighbor":"Постучать соседке", "phone_test":"Проверить связь", "phone_shelf":"Телефон на полку", "speak_here":"Мам, я здесь", "speak_love":"Я люблю тебя"}
|
||||
for action in story.actions:
|
||||
if command_allowed(action):
|
||||
var id: String = action.id
|
||||
|
||||
Reference in New Issue
Block a user