From 4b452bf3d5d28399ce647a980122de86387beab8 Mon Sep 17 00:00:00 2001 From: DeadCode1010 <1michael.kiss@gmail.com> Date: Fri, 10 May 2024 12:03:47 -0500 Subject: [PATCH] added functionality to Return to Title button before starting a new run --- src/ui/menu-ui-handler.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/menu-ui-handler.ts b/src/ui/menu-ui-handler.ts index bf032667610..00aa17c5905 100644 --- a/src/ui/menu-ui-handler.ts +++ b/src/ui/menu-ui-handler.ts @@ -298,6 +298,11 @@ export default class MenuUiHandler extends MessageUiHandler { success = true; break; case MenuOptions.RETURN_TO_TITLE: + if (this.scene.getParty().length === 0) { + success = true; + this.scene.reset(true); + } + if (this.scene.currentBattle) { success = true; ui.showText(i18next.t("menuUiHandler:losingProgressionWarning"), null, () => {