mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-29 13:02:46 +02:00
Fixed conflicts on file imports.
Signed-off-by: Matilde Simões <matilde.simoes@tecnico.ulisboa.pt> Co-authored-by: Fuad Ali <fuad.ali@tecnico.ulisboa.pt>
This commit is contained in:
parent
f8a3352bb3
commit
14cdfaac09
@ -19,7 +19,7 @@ import { Challenges } from "#enums/challenges";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import { Nature } from "#enums/nature";
|
||||
import type { MoveId } from "#enums/move-id";
|
||||
import { MoveId } from "#enums/move-id";
|
||||
import { TypeColor, TypeShadow } from "#enums/color";
|
||||
import { ModifierTier } from "#enums/modifier-tier";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
@ -1017,7 +1017,7 @@ export class HardcoreChallenge extends Challenge {
|
||||
}
|
||||
|
||||
applyMoveBlacklist(move: PokemonMove, moveCanBeUsed: BooleanHolder): boolean {
|
||||
const moveBlacklist = [Moves.REVIVAL_BLESSING];
|
||||
const moveBlacklist = [MoveId.REVIVAL_BLESSING];
|
||||
moveCanBeUsed.value = !moveBlacklist.includes(move.moveId);
|
||||
return true;
|
||||
}
|
||||
|
@ -38,7 +38,8 @@ import type { AbilityId } from "#enums/ability-id";
|
||||
import type { PokeballType } from "#enums/pokeball";
|
||||
import { StatusEffect } from "#enums/status-effect";
|
||||
import { BooleanHolder } from "#app/utils/common";
|
||||
import { ChallengeType, applyChallenges } from "#app/data/challenge";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
/** Will give +1 level every 10 waves */
|
||||
export const STANDARD_ENCOUNTER_BOOSTED_LEVEL_MODIFIER = 1;
|
||||
|
@ -65,5 +65,44 @@ export enum ChallengeType {
|
||||
/**
|
||||
* Modifies what the pokemon stats for Flip Stat Mode.
|
||||
*/
|
||||
FLIP_STAT
|
||||
FLIP_STAT,
|
||||
/**
|
||||
* Challenge that modifies if the player should auto heal every 10th wave
|
||||
*/
|
||||
NO_HEAL_PHASE,
|
||||
/**
|
||||
* Modifies if the shop item is blacklisted
|
||||
* @see {@linkcode Challenge.applyShopItemBlacklist}
|
||||
*/
|
||||
SHOP_ITEM_BLACKLIST,
|
||||
/**
|
||||
* Modifies if the random item is blacklisted
|
||||
* @see {@linkcode Challenge.applyRandomItemBlacklist}
|
||||
*/
|
||||
RANDOM_ITEM_BLACKLIST,
|
||||
/**
|
||||
* Modifies if the move is blacklisted
|
||||
* @see {@linkcode Challenge.applyMoveBlacklist}
|
||||
*/
|
||||
MOVE_BLACKLIST,
|
||||
/**
|
||||
* Modifies if pokemon are allowed to be revived from fainting
|
||||
* @see {@linkcode Challenge.applyRevivePrevention}
|
||||
*/
|
||||
PREVENT_REVIVE,
|
||||
/**
|
||||
* Modifies if pokemon are allowed to be revived from fainting
|
||||
* @see {@linkcode Challenge.applyDeletePokemon}
|
||||
*/
|
||||
DELETE_POKEMON,
|
||||
/**
|
||||
* Challenge that modifies if the player should catch pokemon on waves other than the first
|
||||
* @see {@linkcode Challenge.applyAddPokemonToParty}
|
||||
*/
|
||||
ADD_POKEMON_TO_PARTY,
|
||||
/**
|
||||
* Modifies if pokemon are allowed to fuse
|
||||
* @see {@linkcode Challenge.applyShouldFuse}
|
||||
*/
|
||||
SHOULD_FUSE,
|
||||
}
|
||||
|
@ -130,6 +130,7 @@ import { ModifierPoolType } from "#enums/modifier-pool-type";
|
||||
import { getModifierPoolForType, getModifierType } from "#app/utils/modifier-utils";
|
||||
import type { ModifierTypeFunc, WeightedModifierTypeWeightFunc } from "#app/@types/modifier-types";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
const outputModifierData = false;
|
||||
const useMaxWeightForOutput = false;
|
||||
|
@ -46,6 +46,7 @@ import { applyAbAttrs, applyPostItemLostAbAttrs } from "#app/data/abilities/appl
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import type { ModifierInstanceMap, ModifierString } from "#app/@types/modifier-types";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
export type ModifierPredicate = (modifier: Modifier) => boolean;
|
||||
|
||||
|
@ -25,7 +25,8 @@ import i18next from "i18next";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { Gender } from "#app/data/gender";
|
||||
import { BooleanHolder } from "#app/utils/common";
|
||||
import { ChallengeType, applyChallenges } from "#app/data/challenge";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
export class AttemptCapturePhase extends PokemonPhase {
|
||||
public readonly phaseName = "AttemptCapturePhase";
|
||||
|
@ -3,7 +3,8 @@ import { applyPostBattleAbAttrs } from "#app/data/abilities/apply-ab-attrs";
|
||||
import { LapsingPersistentModifier, LapsingPokemonHeldItemModifier } from "#app/modifier/modifier";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { BooleanHolder } from "#app/utils/common";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
export class BattleEndPhase extends BattlePhase {
|
||||
public readonly phaseName = "BattleEndPhase";
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { BooleanHolder, fixedInt } from "#app/utils/common";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
|
||||
export class PartyHealPhase extends BattlePhase {
|
||||
public readonly phaseName = "PartyHealPhase";
|
||||
|
@ -8,6 +8,7 @@ import { handleMysteryEncounterVictory } from "#app/data/mystery-encounters/util
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { timedEventManager } from "#app/global-event-manager";
|
||||
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
import { BooleanHolder } from "#app/utils/common";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
|
||||
@ -111,7 +112,12 @@ export class VictoryPhase extends PokemonPhase {
|
||||
}
|
||||
if (!isHealPhaseActive.value) {
|
||||
//Push shop instead of healing phase for NoHealChallenge
|
||||
globalScene.pushPhase(new SelectModifierPhase(undefined, undefined, this.getFixedBattleCustomModifiers()));
|
||||
globalScene.phaseManager.pushNew(
|
||||
"SelectModifierPhase",
|
||||
undefined,
|
||||
undefined,
|
||||
this.getFixedBattleCustomModifiers(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,8 @@ import i18next from "i18next";
|
||||
import { ShopCursorTarget } from "#app/enums/shop-cursor-target";
|
||||
import Phaser from "phaser";
|
||||
import type { PokeballType } from "#enums/pokeball";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge";
|
||||
import { applyChallenges } from "#app/data/challenge";
|
||||
import { ChallengeType } from "#enums/challenge-type";
|
||||
import { BooleanHolder } from "#app/utils/common";
|
||||
|
||||
export const SHOP_OPTIONS_ROW_LIMIT = 7;
|
||||
|
Loading…
Reference in New Issue
Block a user