mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-21 03:37:28 +00:00
apply inverted speed IV in trick room challenge
This commit is contained in:
parent
599b1978f8
commit
77df8f53ab
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user