mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 05:49:32 +02:00
Added getter for reroll count and ternary
This commit is contained in:
parent
06d1820ed9
commit
cc7b9de320
@ -12,6 +12,7 @@ import { allMoves } from "../data/move";
|
|||||||
import * as Utils from "./../utils";
|
import * as Utils from "./../utils";
|
||||||
import Overrides from "#app/overrides";
|
import Overrides from "#app/overrides";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
import { SelectModifierPhase } from "#app/phases/select-modifier-phase";
|
||||||
|
|
||||||
export const SHOP_OPTIONS_ROW_LIMIT = 6;
|
export const SHOP_OPTIONS_ROW_LIMIT = 6;
|
||||||
|
|
||||||
@ -250,13 +251,8 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.setCursor(0);
|
this.setCursor(0);
|
||||||
const phase = this.scene.getCurrentPhase() as any;
|
const phase = this.scene.getCurrentPhase() as SelectModifierPhase;
|
||||||
const rerollCount = phase.hasOwnProperty("rerollCount") ? phase.rerollCount : 0;
|
phase.getRerollCount() ? this.setRowCursor(this.scene.rerollTarget) : this.setRowCursor(1);
|
||||||
if (rerollCount) {
|
|
||||||
this.setRowCursor(this.scene.rerollTarget);
|
|
||||||
} else {
|
|
||||||
this.setRowCursor(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
handleTutorial(this.scene, Tutorial.Select_Item).then(() => {
|
handleTutorial(this.scene, Tutorial.Select_Item).then(() => {
|
||||||
this.setCursor(0);
|
this.setCursor(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user