apply inverted speed IV in trick room challenge

This commit is contained in:
KimJeongSun 2024-09-21 02:21:38 +09:00
parent 599b1978f8
commit 77df8f53ab

View File

@ -15,6 +15,7 @@ import { Moves } from "#app/enums/moves";
import { TypeColor, TypeShadow } from "#app/enums/color";
import { pokemonEvolutions } from "./pokemon-evolutions";
import { pokemonFormChanges } from "./pokemon-forms";
import { Stat } from "#enums/stat";
/** A constant for the default max cost of the starting party before a run */
const DEFAULT_PARTY_MAX_COST = 10;
@ -739,6 +740,11 @@ export class TrickRoomChallenge extends Challenge {
return 0;
}
applyStarterModify(pokemon: Pokemon): boolean {
pokemon.ivs[Stat.SPD] = 31 - pokemon.ivs[Stat.SPD];
return true;
}
applyTrickRoom(isTrickRoom: Utils.BooleanHolder): boolean {
isTrickRoom.value = !isTrickRoom.value;
return true;