Modernise & make fun #3

Merged
andras merged 18 commits from asch/modernise into main 2026-06-21 10:43:50 +01:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit 614db16e41 - Show all commits

View file

@ -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);

View file

@ -1,4 +1,7 @@
declare global {
// `T` must stay to merge with the global `Array<T>` (otherwise TS2428), but it
// is unused by the x/y aliases below.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Array<T> {
x: number;
y: number;