mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
[Challenge][Bug] Partial Fix Available starters in fresh start monotype (#6344)
Full fresh start filter also accepts evolutions Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
be6606a11b
commit
7050e15267
@ -53,6 +53,12 @@ export const defaultStarterSpecies: SpeciesId[] = [
|
||||
SpeciesId.QUAXLY,
|
||||
];
|
||||
|
||||
export const defaultStarterSpeciesAndEvolutions: SpeciesId[] = defaultStarterSpecies.flatMap(id => [
|
||||
id,
|
||||
(id + 1) as SpeciesId,
|
||||
(id + 2) as SpeciesId,
|
||||
]);
|
||||
|
||||
export const saveKey = "x0i2O7WRiANTqPmZ"; // Temporary; secure encryption is not yet necessary
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { FixedBattleConfig } from "#app/battle";
|
||||
import { getRandomTrainerFunc } from "#app/battle";
|
||||
import { defaultStarterSpecies } from "#app/constants";
|
||||
import { defaultStarterSpeciesAndEvolutions } from "#app/constants";
|
||||
import { speciesStarterCosts } from "#balance/starters";
|
||||
import type { PokemonSpecies } from "#data/pokemon-species";
|
||||
import { AbilityAttr } from "#enums/ability-attr";
|
||||
@ -797,7 +797,7 @@ export class FreshStartChallenge extends Challenge {
|
||||
}
|
||||
|
||||
applyStarterChoice(pokemon: PokemonSpecies, valid: BooleanHolder): boolean {
|
||||
if (this.value === 1 && !defaultStarterSpecies.includes(pokemon.speciesId)) {
|
||||
if (this.value === 1 && !defaultStarterSpeciesAndEvolutions.includes(pokemon.speciesId)) {
|
||||
valid.value = false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user