mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Introducing checkValidForChallenge function (unused)
This commit is contained in:
parent
4b8b288507
commit
373b7895b4
@ -1300,6 +1300,22 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkValidForChallenge(species: PokemonSpecies, soft: boolean) {
|
||||||
|
const isValidForChallenge = new BooleanHolder(true);
|
||||||
|
Challenge.applyChallenges(
|
||||||
|
globalScene.gameMode,
|
||||||
|
Challenge.ChallengeType.STARTER_CHOICE,
|
||||||
|
species,
|
||||||
|
isValidForChallenge,
|
||||||
|
globalScene.gameData.getSpeciesDexAttrProps(
|
||||||
|
species,
|
||||||
|
this.getCurrentDexProps(species.speciesId)
|
||||||
|
),
|
||||||
|
this.isPartyValid()
|
||||||
|
);
|
||||||
|
return isValidForChallenge.value;
|
||||||
|
}
|
||||||
|
|
||||||
processInput(button: Button): boolean {
|
processInput(button: Button): boolean {
|
||||||
if (this.blockInput) {
|
if (this.blockInput) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user