mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Fixed errors in data/challenge.ts, but will need more fixes to work with new rewards
This commit is contained in:
parent
e4f236c73a
commit
b263ff7ee4
@ -17,7 +17,7 @@ import { TrainerType } from "#enums/trainer-type";
|
|||||||
import { TrainerVariant } from "#enums/trainer-variant";
|
import { TrainerVariant } from "#enums/trainer-variant";
|
||||||
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||||
import { Trainer } from "#field/trainer";
|
import { Trainer } from "#field/trainer";
|
||||||
import type { ModifierTypeOption } from "#modifiers/modifier-type";
|
import type { RewardOption } from "#items/reward";
|
||||||
import { PokemonMove } from "#moves/pokemon-move";
|
import { PokemonMove } from "#moves/pokemon-move";
|
||||||
import type { DexAttrProps, GameData } from "#system/game-data";
|
import type { DexAttrProps, GameData } from "#system/game-data";
|
||||||
import { type BooleanHolder, isBetween, type NumberHolder, randSeedItem } from "#utils/common";
|
import { type BooleanHolder, isBetween, type NumberHolder, randSeedItem } from "#utils/common";
|
||||||
@ -393,7 +393,7 @@ export abstract class Challenge {
|
|||||||
* @param _status - Whether the item should be added to the shop or not
|
* @param _status - Whether the item should be added to the shop or not
|
||||||
* @returns Whether this function did anything
|
* @returns Whether this function did anything
|
||||||
*/
|
*/
|
||||||
applyShopItem(_shopItem: ModifierTypeOption | null, _status: BooleanHolder): boolean {
|
applyShopItem(_shopItem: RewardOption | null, _status: BooleanHolder): boolean {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ export abstract class Challenge {
|
|||||||
* @param _status - Whether the reward should be added to the reward options or not
|
* @param _status - Whether the reward should be added to the reward options or not
|
||||||
* @returns Whether this function did anything
|
* @returns Whether this function did anything
|
||||||
*/
|
*/
|
||||||
applyWaveReward(_reward: ModifierTypeOption | null, _status: BooleanHolder): boolean {
|
applyWaveReward(_reward: RewardOption | null, _status: BooleanHolder): boolean {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1009,12 +1009,12 @@ export class HardcoreChallenge extends Challenge {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
override applyShopItem(shopItem: ModifierTypeOption | null, status: BooleanHolder): boolean {
|
override applyShopItem(shopItem: RewardOption | null, status: BooleanHolder): boolean {
|
||||||
status.value = shopItem?.type.group !== "revive";
|
status.value = shopItem?.type.group !== "revive";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
override applyWaveReward(reward: ModifierTypeOption | null, status: BooleanHolder): boolean {
|
override applyWaveReward(reward: RewardOption | null, status: BooleanHolder): boolean {
|
||||||
return this.applyShopItem(reward, status);
|
return this.applyShopItem(reward, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user