remove hacky invert speed IV code

This commit is contained in:
KimJeongSun 2024-09-21 12:05:44 +09:00
parent 340e1e0902
commit b7aa0ed2e1

View File

@ -15,7 +15,6 @@ 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;
@ -741,17 +740,6 @@ export class TrickRoomChallenge extends Challenge {
return 0;
}
/**
* @override
* this challenge inverts the Speed IV of the pokemon.
* @param pokemon {@link Pokemon} The pokemon to modify.
* @returns `true` if any challenge was successfully applied.
*/
override applyStarterModify(pokemon: Pokemon): boolean {
pokemon.ivs[Stat.SPD] = 31 - pokemon.ivs[Stat.SPD];
return true;
}
/**
* @override
* this challenge inverts whether the battle is under the effect of Trick Room.