mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-22 04:06:51 +00:00
update requested changes
This commit is contained in:
parent
77df8f53ab
commit
73411c7a21
@ -62,6 +62,7 @@ export enum ChallengeType {
|
|||||||
TYPE_EFFECTIVENESS,
|
TYPE_EFFECTIVENESS,
|
||||||
/**
|
/**
|
||||||
* Challenge that enables Trick Room in a run
|
* Challenge that enables Trick Room in a run
|
||||||
|
* @see {@link https://bulbapedia.bulbagarden.net/wiki/Trick_Room_(move)}
|
||||||
*/
|
*/
|
||||||
TRICK_ROOM,
|
TRICK_ROOM,
|
||||||
/**
|
/**
|
||||||
@ -740,12 +741,24 @@ export class TrickRoomChallenge extends Challenge {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
applyStarterModify(pokemon: Pokemon): boolean {
|
/**
|
||||||
|
* @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];
|
pokemon.ivs[Stat.SPD] = 31 - pokemon.ivs[Stat.SPD];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
applyTrickRoom(isTrickRoom: Utils.BooleanHolder): boolean {
|
/**
|
||||||
|
* @override
|
||||||
|
* this challenge inverts whether the battle is under the effect of Trick Room.
|
||||||
|
* @param isTrickRoom {@link Utils.BooleanHolder} Whether the battle is under the effect of Trick Room.
|
||||||
|
* @returns `true` if any challenge was successfully applied.
|
||||||
|
*/
|
||||||
|
override applyTrickRoom(isTrickRoom: Utils.BooleanHolder): boolean {
|
||||||
isTrickRoom.value = !isTrickRoom.value;
|
isTrickRoom.value = !isTrickRoom.value;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user