mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 06:12:19 +02:00
Add TSDoc for the new classes
This commit is contained in:
parent
4481ac504c
commit
3916b2b08b
@ -2129,7 +2129,21 @@ export class WeightPowerAttr extends VariablePowerAttr {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Attribute used for Electro Ball move.
|
||||
* @extends VariablePowerAttr
|
||||
* @see {@linkcode apply}
|
||||
**/
|
||||
export class ElectroBallPowerAttr extends VariablePowerAttr {
|
||||
/**
|
||||
* Move that deals more damage the faster {@linkcode BattleStat.SPD}
|
||||
* the user is compared to the target.
|
||||
* @param user Pokemon that used the move
|
||||
* @param target The target of the move
|
||||
* @param move Move with this attribute
|
||||
* @param args N/A
|
||||
* @returns true if the function succeeds
|
||||
*/
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||
const power = args[0] as Utils.NumberHolder;
|
||||
|
||||
@ -2148,7 +2162,22 @@ export class ElectroBallPowerAttr extends VariablePowerAttr {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Attribute used for Gyro Ball move.
|
||||
* @extends VariablePowerAttr
|
||||
* @see {@linkcode apply}
|
||||
**/
|
||||
export class GyroBallPowerAttr extends VariablePowerAttr {
|
||||
/**
|
||||
* Move that deals more damage the slower {@linkcode BattleStat.SPD}
|
||||
* the user is compared to the target.
|
||||
* @param user Pokemon that used the move
|
||||
* @param target The target of the move
|
||||
* @param move Move with this attribute
|
||||
* @param args N/A
|
||||
* @returns true if the function succeeds
|
||||
*/
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
|
||||
const power = args[0] as Utils.NumberHolder;
|
||||
const userSpeed = user.getBattleStat(Stat.SPD);
|
||||
|
Loading…
Reference in New Issue
Block a user