From 77df8f53ab7b7c8bb98949a09c561ebd739c9d53 Mon Sep 17 00:00:00 2001 From: KimJeongSun Date: Sat, 21 Sep 2024 02:21:38 +0900 Subject: [PATCH] apply inverted speed IV in trick room challenge --- src/data/challenge.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/challenge.ts b/src/data/challenge.ts index 2ceca783202..8c90022c062 100644 --- a/src/data/challenge.ts +++ b/src/data/challenge.ts @@ -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;