From 66280ba7b70db4b2f95028d834918bde391a518c Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Thu, 2 Jan 2025 02:37:38 +0100 Subject: [PATCH] Allowing cursor in shop to cycle horizontally --- src/ui/modifier-select-ui-handler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/modifier-select-ui-handler.ts b/src/ui/modifier-select-ui-handler.ts index a0358b5ca8c..4f4f856814a 100644 --- a/src/ui/modifier-select-ui-handler.ts +++ b/src/ui/modifier-select-ui-handler.ts @@ -397,8 +397,8 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler { } } else if (this.cursor) { success = this.setCursor(this.cursor - 1); - } else if (this.rowCursor === 1 && this.rerollButtonContainer.visible) { - success = this.setRowCursor(0); + } else { + success = this.setCursor(this.getRowItems(this.rowCursor) - 1); } break; case Button.RIGHT: @@ -427,8 +427,8 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler { } } else if (this.cursor < this.getRowItems(this.rowCursor) - 1) { success = this.setCursor(this.cursor + 1); - } else if (this.rowCursor === 1 && this.transferButtonContainer.visible) { - success = this.setRowCursor(0); + } else { + success = this.setCursor(0); } break; }