mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-03 23:13:20 +01:00
remove hacky invert speed IV code
This commit is contained in:
parent
340e1e0902
commit
b7aa0ed2e1
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user