mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-28 11:12:24 +02:00
Pokerus cursor is now treated as decoration
This commit is contained in:
parent
8174e1284a
commit
05e97806b5
@ -1418,29 +1418,26 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
|
||||
this.starterSelectScrollBar.setScrollCursor(this.scrollCursor);
|
||||
|
||||
this.pokerusCursorObjs.forEach(cursorObj => cursorObj.setVisible(false));
|
||||
|
||||
let pokerusCursorIndex = 0;
|
||||
this.filteredStarterContainers.forEach((container, i) => {
|
||||
const pos = calcStarterPosition(i, this.scrollCursor);
|
||||
container.setPosition(pos.x, pos.y);
|
||||
if (i < onScreenFirstIndex || i > onScreenLastIndex) {
|
||||
container.setVisible(false);
|
||||
|
||||
if (this.pokerusSpecies.includes(container.species)) {
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(false);
|
||||
pokerusCursorIndex++;
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
container.setVisible(true);
|
||||
|
||||
if (this.pokerusSpecies.includes(container.species)) {
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(true);
|
||||
pokerusCursorIndex++;
|
||||
}
|
||||
|
||||
if (this.showDecorations) {
|
||||
|
||||
if (this.pokerusSpecies.includes(container.species)) {
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setPosition(pos.x - 1, pos.y + 1);
|
||||
this.pokerusCursorObjs[pokerusCursorIndex].setVisible(true);
|
||||
pokerusCursorIndex++;
|
||||
}
|
||||
|
||||
const speciesId = container.species.speciesId;
|
||||
this.updateStarterValueLabel(container);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user