fix typo in CanLearnMoveRequirementOptions

This commit is contained in:
Felix Staud 2024-07-17 15:09:17 -07:00
parent fe2888be4b
commit 918320079a
2 changed files with 5 additions and 5 deletions

View File

@ -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));
} }

View File

@ -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];