Merge branch 'instruct' of https://github.com/Bertie690/pokerogue into instruct
This commit is contained in:
commit
d86ce5403e
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue