Skip to content

Commit 0a063fa

Browse files
committed
updated inventory selection for new items
1 parent 776c7fd commit 0a063fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/wagemaker/uk/player/Player.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,15 +1377,15 @@ private void handleInventoryNavigation() {
13771377
if (currentSelection == -1) {
13781378
newSelection = 0; // Start at first slot
13791379
} else {
1380-
newSelection = (currentSelection + 1) % 10; // Wrap to 0 after slot 9
1380+
newSelection = (currentSelection + 1) % 14; // Wrap to 0 after slot 13
13811381
}
13821382
}
13831383
// LEFT arrow: move to previous slot (wrap around)
13841384
else if (Gdx.input.isKeyJustPressed(Input.Keys.LEFT)) {
13851385
if (currentSelection == -1) {
1386-
newSelection = 9; // Start at last slot
1386+
newSelection = 13; // Start at last slot
13871387
} else {
1388-
newSelection = (currentSelection - 1 + 10) % 10; // Wrap to 9 from slot 0
1388+
newSelection = (currentSelection - 1 + 14) % 14; // Wrap to 13 from slot 0
13891389
}
13901390
}
13911391
// UP/DOWN: Reserved for future multi-row layout

0 commit comments

Comments
 (0)