dist/models~ Move

new Move()

Represents a Pokemon move.

Properties
NameTypeDescription
idnumber

The ID of the move.

slugstring

The slug for the move

namestring

The name of the move.

powernumber | null

The power of the move, or null if it doesn't deal damage.

ppnumber

The number of Power Points (PP) the move has.

accuracynumber | null

The accuracy of the move, or null if it never misses.

prioritynumber

The priority of the move (higher values go first).

target_idnumber

The ID of the move's target (e.g., one opponent, all Pokemon).

type_idnumber

The ID of the move's type (e.g., Electric, Fire).

damage_class_idnumber

The ID of the move's damage class (e.g., Physical, Special, Status).

effect_idnumber

The ID of the move's effect.

effect_chancenumber | null

The chance that the move's effect will occur, or null if it always occurs.

metaMoveMeta

Additional information about the move's mechanics.

instanceDataManagerBase

The DataManagerBase instance

Methods

calculate_turn(pokemon, opponent) → {MoveResult}

Simulate a fight between two pokemon instances

Parameters:
NameTypeDescription
pokemonPokemonBase

The pokemon performing the move

opponentPokemonBase

Opponent pokemon

Returns:

The result of a move.

Type: 
MoveResult