mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02:18 +02:00
Rename LearnMoveSituation to LearnMoveContext
This commit is contained in:
parent
2394726dcf
commit
4e7f35e4c2
@ -1,4 +1,4 @@
|
||||
export enum LearnMoveSituation {
|
||||
export enum LearnMoveContext {
|
||||
MISC,
|
||||
LEVEL_UP,
|
||||
RELEARN,
|
@ -259,7 +259,7 @@ import { MoveFlags } from "#enums/MoveFlags";
|
||||
import { timedEventManager } from "#app/global-event-manager";
|
||||
import { loadMoveAnimations } from "#app/sprites/pokemon-asset-loader";
|
||||
import { ResetStatusPhase } from "#app/phases/reset-status-phase";
|
||||
import { LearnMoveSituation } from "#enums/learn-move-situation";
|
||||
import { LearnMoveContext } from "#enums/learn-move-context";
|
||||
import { TurnMove } from "#app/interfaces/turn-move";
|
||||
import { AiType } from "#enums/ai-type";
|
||||
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
||||
@ -2919,7 +2919,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
includeEvolutionMoves = false,
|
||||
simulateEvolutionChain = false,
|
||||
includeRelearnerMoves = false,
|
||||
learnSituation: LearnMoveSituation = LearnMoveSituation.MISC,
|
||||
learnSituation: LearnMoveContext = LearnMoveContext.MISC,
|
||||
): LevelMoves {
|
||||
const ret: LevelMoves = [];
|
||||
let levelMoves: LevelMoves = [];
|
||||
@ -2927,7 +2927,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
startingLevel = this.level;
|
||||
}
|
||||
if (
|
||||
learnSituation === LearnMoveSituation.EVOLUTION_FUSED &&
|
||||
learnSituation === LearnMoveContext.EVOLUTION_FUSED &&
|
||||
this.fusionSpecies
|
||||
) {
|
||||
// For fusion evolutions, get ONLY the moves of the component mon that evolved
|
||||
@ -2979,7 +2979,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
}
|
||||
if (
|
||||
this.fusionSpecies &&
|
||||
learnSituation !== LearnMoveSituation.EVOLUTION_FUSED_BASE
|
||||
learnSituation !== LearnMoveContext.EVOLUTION_FUSED_BASE
|
||||
) {
|
||||
// For fusion evolutions, get ONLY the moves of the component mon that evolved
|
||||
if (simulateEvolutionChain) {
|
||||
|
@ -10,7 +10,7 @@ import { Mode } from "#app/ui/ui";
|
||||
import { cos, sin } from "#app/field/anims";
|
||||
import type { PlayerPokemon } from "#app/field/pokemon";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { LearnMoveSituation } from "#enums/learn-move-situation";
|
||||
import { LearnMoveContext } from "#enums/learn-move-context";
|
||||
import { getTypeRgb } from "#app/data/type";
|
||||
import i18next from "i18next";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
@ -343,11 +343,11 @@ export class EvolutionPhase extends Phase {
|
||||
this.evolutionHandler.canCancel = false;
|
||||
|
||||
this.pokemon.evolve(this.evolution, this.pokemon.species).then(() => {
|
||||
const learnSituation: LearnMoveSituation = this.fusionSpeciesEvolved
|
||||
? LearnMoveSituation.EVOLUTION_FUSED
|
||||
const learnSituation: LearnMoveContext = this.fusionSpeciesEvolved
|
||||
? LearnMoveContext.EVOLUTION_FUSED
|
||||
: this.pokemon.fusionSpecies
|
||||
? LearnMoveSituation.EVOLUTION_FUSED_BASE
|
||||
: LearnMoveSituation.EVOLUTION;
|
||||
? LearnMoveContext.EVOLUTION_FUSED_BASE
|
||||
: LearnMoveContext.EVOLUTION;
|
||||
const levelMoves = this.pokemon
|
||||
.getLevelMoves(this.lastLevel + 1, true, false, false, learnSituation)
|
||||
.filter(lm => lm[0] === EVOLVE_MOVE);
|
||||
|
Loading…
Reference in New Issue
Block a user