mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 09:16:03 +00:00
fix typo in CanLearnMoveRequirementOptions
This commit is contained in:
parent
fe2888be4b
commit
918320079a
@ -5,7 +5,7 @@ import BattleScene from "../../battle-scene";
|
|||||||
import * as Utils from "../../utils";
|
import * as Utils from "../../utils";
|
||||||
import { Type } from "../type";
|
import { Type } from "../type";
|
||||||
import { EncounterPokemonRequirement, EncounterSceneRequirement, MoneyRequirement, TypeRequirement } from "./mystery-encounter-requirements";
|
import { EncounterPokemonRequirement, EncounterSceneRequirement, MoneyRequirement, TypeRequirement } from "./mystery-encounter-requirements";
|
||||||
import { CanLearnMoveRequirement, CanlearnMoveRequirementOptions } from "./requirements/can-learn-move-requirement";
|
import { CanLearnMoveRequirement, CanLearnMoveRequirementOptions } from "./requirements/can-learn-move-requirement";
|
||||||
|
|
||||||
export enum EncounterOptionMode {
|
export enum EncounterOptionMode {
|
||||||
/** Default style */
|
/** Default style */
|
||||||
@ -202,10 +202,10 @@ export class MysteryEncounterOptionBuilder implements Partial<MysteryEncounterOp
|
|||||||
* Player is required to have a pokemon that can learn a certain move/moveset
|
* Player is required to have a pokemon that can learn a certain move/moveset
|
||||||
*
|
*
|
||||||
* @param move the required move/moves
|
* @param move the required move/moves
|
||||||
* @param options see {@linkcode CanlearnMoveRequirementOptions}
|
* @param options see {@linkcode CanLearnMoveRequirementOptions}
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
withPokemonCanLearnMoveRequirement(move: Moves | Moves[], options?: CanlearnMoveRequirementOptions) {
|
withPokemonCanLearnMoveRequirement(move: Moves | Moves[], options?: CanLearnMoveRequirementOptions) {
|
||||||
return this.withPrimaryPokemonRequirement(new CanLearnMoveRequirement(move, options));
|
return this.withPrimaryPokemonRequirement(new CanLearnMoveRequirement(move, options));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import { EncounterPokemonRequirement } from "../mystery-encounter-requirements";
|
|||||||
/**
|
/**
|
||||||
* {@linkcode CanLearnMoveRequirement} options
|
* {@linkcode CanLearnMoveRequirement} options
|
||||||
*/
|
*/
|
||||||
export interface CanlearnMoveRequirementOptions {
|
export interface CanLearnMoveRequirementOptions {
|
||||||
excludeLevelMoves?: boolean;
|
excludeLevelMoves?: boolean;
|
||||||
excludeTmMoves?: boolean;
|
excludeTmMoves?: boolean;
|
||||||
excludeEggMoves?: boolean;
|
excludeEggMoves?: boolean;
|
||||||
@ -26,7 +26,7 @@ export class CanLearnMoveRequirement extends EncounterPokemonRequirement {
|
|||||||
private readonly excludeEggMoves?: boolean;
|
private readonly excludeEggMoves?: boolean;
|
||||||
private readonly includeFainted?: boolean;
|
private readonly includeFainted?: boolean;
|
||||||
|
|
||||||
constructor(requiredMoves: Moves | Moves[], options: CanlearnMoveRequirementOptions = {}) {
|
constructor(requiredMoves: Moves | Moves[], options: CanLearnMoveRequirementOptions = {}) {
|
||||||
super();
|
super();
|
||||||
this.requiredMoves = Array.isArray(requiredMoves) ? requiredMoves : [requiredMoves];
|
this.requiredMoves = Array.isArray(requiredMoves) ? requiredMoves : [requiredMoves];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user