From 4526a5b1b394bc70ede5c25ece1aeef4e0372eef Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:33:50 -0500 Subject: [PATCH 1/4] Update pokemon.ts comment fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/field/pokemon.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 00a79dc3800..56c724ef51a 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -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; } From 22c6e449b9cdcb680f74f8f0f8886bdf535d3970 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:34:00 -0500 Subject: [PATCH 2/4] Update move.ts comment fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/move.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 6d2e09212ff..d6325184449 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1380,9 +1380,10 @@ 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() { super(0); From be6595006d1ed81856b848d917774af69889f572 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:34:17 -0500 Subject: [PATCH 3/4] Update moveHelper.ts comment fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/test/utils/helpers/moveHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/utils/helpers/moveHelper.ts b/src/test/utils/helpers/moveHelper.ts index 8b7de065f38..02f9d1ef3b3 100644 --- a/src/test/utils/helpers/moveHelper.ts +++ b/src/test/utils/helpers/moveHelper.ts @@ -75,7 +75,7 @@ export class MoveHelper extends GameManagerHelper { } /** - * Changes a pokemon's moveset to the given move(s). + * Changes a pokemon's moveset to the given move(s). * Used when the normal moveset override can't be used (such as when it's necessary to check or update properties of the moveset). * @param pokemon - The {@linkcode Pokemon} being modified * @param moveset - The {@linkcode Moves} (single or array) to change the Pokemon's moveset to From 81329cfde3a75f4dccad509da8a5c0aa30687edb Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:34:30 -0500 Subject: [PATCH 4/4] Update ui.ts coment fix Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/ui/ui.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/ui.ts b/src/ui/ui.ts index 8e594d1fba3..790d517f20c 100644 --- a/src/ui/ui.ts +++ b/src/ui/ui.ts @@ -277,10 +277,11 @@ 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) - * @param button The {@linkcode Button} being inputted - * @returns true if the input attempt succeeds - */ + /** + * 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 + */ processInput(button: Button): boolean { if (this.overlayActive) { return false;