From 614db16e41aded8738d9f25e5c6562445dcd4477 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 21 Jun 2026 10:36:15 +0100 Subject: [PATCH] Fix lint --- backend/src/objects/character-physical.ts | 2 +- shared/src/helper/array.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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;