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 { Type } from "../type";
|
||||
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 {
|
||||
/** 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
|
||||
*
|
||||
* @param move the required move/moves
|
||||
* @param options see {@linkcode CanlearnMoveRequirementOptions}
|
||||
* @param options see {@linkcode CanLearnMoveRequirementOptions}
|
||||
* @returns
|
||||
*/
|
||||
withPokemonCanLearnMoveRequirement(move: Moves | Moves[], options?: CanlearnMoveRequirementOptions) {
|
||||
withPokemonCanLearnMoveRequirement(move: Moves | Moves[], options?: CanLearnMoveRequirementOptions) {
|
||||
return this.withPrimaryPokemonRequirement(new CanLearnMoveRequirement(move, options));
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ import { EncounterPokemonRequirement } from "../mystery-encounter-requirements";
|
||||
/**
|
||||
* {@linkcode CanLearnMoveRequirement} options
|
||||
*/
|
||||
export interface CanlearnMoveRequirementOptions {
|
||||
export interface CanLearnMoveRequirementOptions {
|
||||
excludeLevelMoves?: boolean;
|
||||
excludeTmMoves?: boolean;
|
||||
excludeEggMoves?: boolean;
|
||||
@ -26,7 +26,7 @@ export class CanLearnMoveRequirement extends EncounterPokemonRequirement {
|
||||
private readonly excludeEggMoves?: boolean;
|
||||
private readonly includeFainted?: boolean;
|
||||
|
||||
constructor(requiredMoves: Moves | Moves[], options: CanlearnMoveRequirementOptions = {}) {
|
||||
constructor(requiredMoves: Moves | Moves[], options: CanLearnMoveRequirementOptions = {}) {
|
||||
super();
|
||||
this.requiredMoves = Array.isArray(requiredMoves) ? requiredMoves : [requiredMoves];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user