fix shop option cursor indexing (#4601)

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
This commit is contained in:
ImperialSympathizer 2024-10-06 16:51:34 -04:00 committed by GitHub
parent f9691b872b
commit a7157bbe9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);