Moves
A move, also known as an attack or technique, is the skill Pokémon primarily use in battle.
See more on Bulbapedia
Methods
getElectroBallBasePower()
Returns the Base Power (BP) for move Electro Ball according to the ratio of Pokémon user and target respective speeds.
Signature
getElectroBallBasePower(userSpeed: number, targetSpeed: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
userSpeed | number | Yes | The user Pokémon's speed. |
targetSpeed | number | Yes | The target Pokémon's speed. |
Returns
A number with the move's base power.
Example
getElectroBallBasePower(400, 00); // outputs
getGyroBallBasePower()
Returns the Base Power (BP) for move Gyro Ball according to the ratio of Pokémon user and target respective speeds.
Signature
getGyroBallBasePower(userSpeed: number, targetSpeed: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
userSpeed | number | Yes | The user Pokémon's speed. |
targetSpeed | number | Yes | The target Pokémon's speed. |
Returns
A number with the move's base power.
Example
getGyroBallBasePower(400, 00); // outputs
getEruptionBasePower()
Returns the Base Power (BP) for Eruption move according to the ratio of Pokémon current HP and maximum HP.
Signature
getEruptionBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The user current HP. |
maxHp | number | Yes | The user maximum HP. |
Returns
A number with the move's Base Power.
Example
getEruptionBasePower(150, 300); // outputs 75
getWaterSpoutBasePower()
Returns the Base Power (BP) for Water Spout move according to the ratio of Pokémon current HP and maximum HP.
Signature
getWaterSpoutBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The user current HP. |
maxHp | number | Yes | The user maximum HP. |
Returns
A number with the move's Base Power.
Example
getWaterSpoutBasePower(300, 300); // outputs 150
getCrushGripBasePower()
Returns the Base Power (BP) for Crush Grip move according to the ratio of Pokémon current HP and maximum HP.
Signature
getCrushGripBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The target current HP. |
maxHp | number | Yes | The target maximum HP. |
Returns
A number with the move's Base Power.
Example
getCrushGripBasePower(300, 300); // outputs 120
getWringOutBasePower()
Returns the Base Power (BP) for Wring Out move according to the ratio of Pokémon current HP and maximum HP.
Signature
getWringOutBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The target current HP. |
maxHp | number | Yes | The target maximum HP. |
Returns
A number with the move's Base Power.
Example
getWringOutBasePower(150, 300); // outputs 60
getHardPressBasePower()
Returns the Base Power (BP) for Hard Press move according to the ratio of Pokémon current HP and maximum HP.
Signature
getHardPressBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The target current HP. |
maxHp | number | Yes | The target maximum HP. |
Returns
A number with the move's Base Power.
Example
getHardPressBasePower(300, 300); // outputs 100
getReversalBasePower()
Returns the Base Power (BP) for Reversal move according to the ratio of Pokémon current HP and maximum HP.
Signature
getReversalBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The user current HP. |
maxHp | number | Yes | The user maximum HP. |
Returns
A number with the move's Base Power.
Example
getReversalBasePower(241, 241); // outputs 20
getReversalBasePower(1, 241); // outputs 200
getFlailBasePower()
Returns the Base Power (BP) for Flail move according to the ratio of Pokémon current HP and maximum HP.
Signature
getFlailBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The user current HP. |
maxHp | number | Yes | The user maximum HP. |
Returns
A number with the move's Base Power.
Example
getFlailBasePower(180, 180); // outputs 20
getFlailBasePower(1, 180); // outputs 200
getBrineBasePower()
Returns the Base Power (BP) for Brine move according to the ratio of Pokémon current HP and maximum HP.
Signature
getBrineBasePower(currentHp: number, maxHp: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
currentHp | number | Yes | The target current HP. |
maxHp | number | Yes | The target maximum HP. |
Returns
A number with the move's Base Power.
Example
getBrineBasePower(180, 180); // outputs 65
getBrineBasePower(89, 180); // outputs 130
getHeavySlamBasePower()
Returns the Base Power (BP) for Heavy Slam move according to the according the weight ratio between user and target Pokémons.
Signature
getHeavySlamBasePower(params: MoveBasePowerByRelativeWeightParams) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
params | MoveBasePowerByRelativeWeightParams | Yes | The general parameters used for get move Base Power according weight ratio. |
params.user | number | Yes | The user Pokémon's weight. |
params.target | number | Yes | The target Pokémon's weight. |
params.minimize | boolean | No | If the target Pokémon has used the move Minimize. |
Returns
A number with the move's Base Power.
Example
getHeavySlamBasePower({
user: 300,
target: 100,
minimize: true,
});
getHeatCrashBasePower()
Returns the Base Power (BP) for Heat Crash move according to the according the weight ratio between user and target Pokémons.
Signature
getHeatCrashBasePower(params: MoveBasePowerByRelativeWeightParams) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
params | MoveBasePowerByRelativeWeightParams | Yes | The general parameters used for get move Base Power according weight ratio. |
params.user | number | Yes | The user Pokémon's weight. |
params.target | number | Yes | The target Pokémon's weight. |
params.minimize | boolean | No | If the target Pokémon has used the move Minimize. |
Returns
A number with the move's Base Power.
Example
getHeatCrashBasePower({
user: 300,
target: 100,
minimize: true,
});
getGrassKnotBasePower()
Returns the Base Power (BP) for Grass Knot move according the target Pokémon weight.
Signature
getGrassKnotBasePower(targetWeight: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
targetWeight | number | Yes | The target Pokémon's weight (in kg). |
Returns
A number with the move's Base Power.
Example
getGrassKnotBasePower(200); // outputs 120
getLowKickBasePower()
Returns the Base Power (BP) for Low Kick move according the target Pokémon weight.
Signature
getLowKickBasePower(targetWeight: number) => number
| Parameter | Type | Required | Description |
|---|---|---|---|
targetWeight | number | Yes | The target Pokémon's weight (in kg). |
Returns
A number with the move's Base Power.
Example
getLowKickBasePower(20); // outputs 40
Type Definitions
MoveBasePowerByRelativeWeightParams
An interface to determine some moves Base Power relative to user and target Pokémon's weight.
| Type |
|---|
| Interface |
Properties
| Name | Required | Type |
|---|---|---|
user | Yes | number |
target | Yes | number |
minimize | No | boolean |