From 6f7020fa2da4a536f5ec0eefe0effe7157571028 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 7 Oct 2021 03:02:00 -0300 Subject: Hotfix for unreferenced variable. But you could use Summons outside combat? --- game/battle.rpy | 2 ++ game/screens.rpy | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/game/battle.rpy b/game/battle.rpy index a0e96f5..fa93370 100644 --- a/game/battle.rpy +++ b/game/battle.rpy @@ -99,6 +99,7 @@ init python: label combat: # Implement combat view $stdout("================= prepare for combat") + $ battle_mode = True $ hud_clear() $ show_img("bg %s" % TMP_BACKG, False) scene bg battle @@ -274,6 +275,7 @@ label combat: jump combat label results: + $ battle_mode = False $ Player["status"]=ST_TOWN if (response["result"] == "DEFEAT"): $ renpy.call_screen("msgbox", "Result:\n%s" % _("DEFEAT")) diff --git a/game/screens.rpy b/game/screens.rpy index f5ffd9e..270c8bf 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -352,6 +352,7 @@ init python: #default quick_menu = True default tr_loading = False default story_mode = False +default battle_mode = False default hud_interface = False style quick_button is default @@ -401,7 +402,7 @@ screen navigation(): textbutton _("Help") action ShowMenu("help") - if not (main_menu or story_mode or hud_interface): # FIXME + if battle_mode: # FIXME if Player["quest"] >= 5: textbutton _("Summons") action ShowMenu("sumconf") -- cgit v1.2.3-60-g2f50