mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 23:09:27 +02:00
update variable name and comment
This commit is contained in:
parent
d334a55308
commit
6fc0806c63
@ -346,10 +346,10 @@ export abstract class Challenge {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An apply function for TRICK_ROOM challenges. Derived classes should alter this.
|
* An apply function for TRICK_ROOM challenges. Derived classes should alter this.
|
||||||
* @param enabled {@link Utils.BooleanHolder} Whether the challenge is enabled.
|
* @param isTrickRoom {@link Utils.BooleanHolder} Whether the battle is under the effect of Trick Room.
|
||||||
* @returns {@link boolean} Whether this function did anything.
|
* @returns {@link boolean} Whether this function did anything.
|
||||||
*/
|
*/
|
||||||
applyTrickRoom(enabled: Utils.BooleanHolder): boolean {
|
applyTrickRoom(isTrickRoom: Utils.BooleanHolder): boolean {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,11 +739,11 @@ export class TrickRoomChallenge extends Challenge {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
applyTrickRoom(enabled: Utils.BooleanHolder): boolean {
|
applyTrickRoom(isTrickRoom: Utils.BooleanHolder): boolean {
|
||||||
if (!enabled.value) {
|
if (!isTrickRoom.value) {
|
||||||
enabled.value = true;
|
isTrickRoom.value = true;
|
||||||
} else {
|
} else {
|
||||||
enabled.value = false;
|
isTrickRoom.value = false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -880,10 +880,10 @@ export function applyChallenges(gameMode: GameMode, challengeType: ChallengeType
|
|||||||
* Apply all challenges that modify Trick Room.
|
* Apply all challenges that modify Trick Room.
|
||||||
* @param gameMode {@linkcode GameMode} The current gameMode
|
* @param gameMode {@linkcode GameMode} The current gameMode
|
||||||
* @param challengeType {@linkcode ChallengeType} ChallengeType.TRICK_ROOM
|
* @param challengeType {@linkcode ChallengeType} ChallengeType.TRICK_ROOM
|
||||||
* @param enabled {@linkcode Utils.BooleanHolder} Whether Trick Room is enabled.
|
* @param isTrickRoom {@linkcode Utils.BooleanHolder} Whether the battle is under the effect of Trick Room.
|
||||||
* @returns True if any challenge was successfully applied.
|
* @returns True if any challenge was successfully applied.
|
||||||
*/
|
*/
|
||||||
export function applyChallenges(gameMode: GameMode, challengeType: ChallengeType.TRICK_ROOM, enabled: Utils.BooleanHolder): boolean;
|
export function applyChallenges(gameMode: GameMode, challengeType: ChallengeType.TRICK_ROOM, isTrickRoom: Utils.BooleanHolder): boolean;
|
||||||
/**
|
/**
|
||||||
* Apply all challenges that modify what level AI are.
|
* Apply all challenges that modify what level AI are.
|
||||||
* @param gameMode {@link GameMode} The current gameMode
|
* @param gameMode {@link GameMode} The current gameMode
|
||||||
|
Loading…
Reference in New Issue
Block a user