diff --git a/backend/src/objects/character-physical.ts b/backend/src/objects/character-physical.ts index 11990d9..bdc8873 100644 --- a/backend/src/objects/character-physical.ts +++ b/backend/src/objects/character-physical.ts @@ -486,7 +486,7 @@ export class CharacterPhysical extends CharacterBase implements DynamicPhysical this.projectileStrength = Math.min( settings.playerMaxStrength, this.projectileStrength + - settings.playerStrengthRegenerationPerSeconds * deltaTimeInSeconds, + settings.playerStrengthRegenerationPerSeconds * deltaTimeInSeconds, ); this.regenerateHealth(deltaTimeInSeconds); diff --git a/shared/src/helper/array.ts b/shared/src/helper/array.ts index 5a0ff29..8c86ffa 100644 --- a/shared/src/helper/array.ts +++ b/shared/src/helper/array.ts @@ -1,4 +1,7 @@ declare global { + // `T` must stay to merge with the global `Array` (otherwise TS2428), but it + // is unused by the x/y aliases below. + // eslint-disable-next-line @typescript-eslint/no-unused-vars interface Array { x: number; y: number;