Merge branch 'instruct' of https://github.com/Bertie690/pokerogue into instruct

This commit is contained in:
Bertie690 2025-01-17 00:02:51 -05:00
commit d86ce5403e
4 changed files with 11 additions and 11 deletions

View File

@ -1380,8 +1380,9 @@ export class UserHpDamageAttr extends FixedDamageAttr {
}
export class TargetHalfHpDamageAttr extends FixedDamageAttr {
/** the initial amount of hp the target had before the first hit;
used for multi lens hp cutting
/**
* The initial amount of hp the target had before the first hit.
* Used for calculating multi lens damage.
*/
private initialHp: number;
constructor() {

View File

@ -1108,9 +1108,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
return this.getStat(Stat.HP);
}
/**
Returns the amount of hp currently missing from this {@linkcode Pokemon} (max - current)
*/
/** Returns the amount of hp currently missing from this {@linkcode Pokemon} (max - current) */
getInverseHp(): integer {
return this.getMaxHp() - this.hp;
}

View File

@ -277,7 +277,8 @@ export default class UI extends Phaser.GameObjects.Container {
return true;
}
/** Process a player input of a button (delivering it to the current UI handler for processing)
/**
* Process a player input of a button (delivering it to the current UI handler for processing)
* @param button The {@linkcode Button} being inputted
* @returns true if the input attempt succeeds
*/