From a7157bbe9ab356092284fd1b986b26b75b5ae0b9 Mon Sep 17 00:00:00 2001 From: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:51:34 -0400 Subject: [PATCH] fix shop option cursor indexing (#4601) Co-authored-by: ImperialSympathizer --- src/ui/modifier-select-ui-handler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/modifier-select-ui-handler.ts b/src/ui/modifier-select-ui-handler.ts index 9f2fb731022..f7e57b53193 100644 --- a/src/ui/modifier-select-ui-handler.ts +++ b/src/ui/modifier-select-ui-handler.ts @@ -577,6 +577,10 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler { this.getUi().clearText(); this.eraseCursor(); + // Reset cursor positions + this.cursor = 0; + this.rowCursor = 0; + /* Multiplies the fade time duration by the speed parameter so that it is always constant, and avoids "flashbangs" at game speed x5 */ this.scene.hideShopOverlay(750 * this.scene.gameSpeed); this.scene.hideLuckText(250);