mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 20:32:17 +02:00
adjusted descriptions according to guideline
This commit is contained in:
parent
29824eea19
commit
4b055cd793
@ -1844,16 +1844,18 @@ export class HpSplitAttr extends MoveEffectAttr {
|
||||
|
||||
/**
|
||||
* Attribute used for moves which split the user and the target's offensive raw stats.
|
||||
* This attribute is used for the move Power Split.
|
||||
* @extends MoveEffectAttr
|
||||
* @see {@link apply}
|
||||
*/
|
||||
export class PowerSplitAttr extends MoveEffectAttr {
|
||||
|
||||
/**
|
||||
* Applying Power Split to the user and the target.
|
||||
* @param {Pokemon} user The pokemon using the move.
|
||||
* @param {Pokemon} target The targeted pokemon of the move.
|
||||
* @param {Move} move The move used.
|
||||
* @param {any} args N/A
|
||||
* @returns {boolean} True if power split is applied successfully.
|
||||
* @param user The pokemon using the move. {@link Pokemon}
|
||||
* @param target The targeted pokemon of the move. {@link Pokemon}
|
||||
* @param move The move used. {@link Move}
|
||||
* @param args N/A
|
||||
* @returns True if power split is applied successfully.
|
||||
*/
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]) : Promise<boolean> {
|
||||
return new Promise(resolve => {
|
||||
@ -1882,16 +1884,17 @@ export class PowerSplitAttr extends MoveEffectAttr {
|
||||
|
||||
/**
|
||||
* Attribute used for moves which split the user and the target's defensive raw stats.
|
||||
* This attribute is used for the move Guard Split.
|
||||
* @extends MoveEffectAttr
|
||||
* @see {@link apply}
|
||||
*/
|
||||
export class GuardSplitAttr extends MoveEffectAttr {
|
||||
/**
|
||||
* Applying Guard Split to the user and the target.
|
||||
* @param {Pokemon} user The pokemon using the move.
|
||||
* @param {Pokemon} target The targeted pokemon of the move.
|
||||
* @param {Move} move The move used.
|
||||
* @param {any} args N/A
|
||||
* @returns {boolean} True if power split is applied successfully.
|
||||
* @param user The pokemon using the move. {@link Pokemon}
|
||||
* @param target The targeted pokemon of the move. {@link Pokemon}
|
||||
* @param move The move used. {@link Move}
|
||||
* @param args N/A
|
||||
* @returns True if power split is applied successfully.
|
||||
*/
|
||||
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise<boolean> {
|
||||
return new Promise(resolve => {
|
||||
|
@ -547,7 +547,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
/**
|
||||
* Returns the value of the specified stat.
|
||||
* @param stat Stat to get the value of. {@link Stat}
|
||||
* @returns The value of the stat. If the pokemon is already summoned, it uses those values, otherwise uses the base stats. {@link integer}
|
||||
* @returns The value of the stat. If the pokemon is already summoned, it uses those values, otherwise uses the base stats.
|
||||
*/
|
||||
getStat(stat: Stat): integer {
|
||||
if (!this.summonData) {
|
||||
@ -1713,9 +1713,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a specific stat to a specific value. Used for summon data, while the pokemon is out until the next time it is retrieved.
|
||||
* Sets a specific stat to a specific value.
|
||||
* Used for summon data, while the pokemon is out until the next time it is retrieved.
|
||||
* @param stat Stat to change. {@link Stat}
|
||||
* @param value Amount to set the stat to. {@link integer}
|
||||
* @param value Amount to set the stat to.
|
||||
*/
|
||||
changeSummonStat(stat: Stat, value: integer) : void {
|
||||
this.summonData.stats[stat] = value;
|
||||
|
Loading…
Reference in New Issue
Block a user