Fix bug where slower enemies (ie rat) would never get scheduled a turn

This commit is contained in:
Peter Stockings
2026-01-06 10:34:23 +11:00
parent a2a1d0cc58
commit 0263495d0b
7 changed files with 282 additions and 67 deletions

View File

@@ -196,7 +196,8 @@ describe('DungeonRenderer', () => {
type: "rat",
pos: { x: 3, y: 1 },
speed: 10,
stats: { hp: 10, maxHp: 10, attack: 2, defense: 0 } as any
stats: { hp: 10, maxHp: 10, attack: 2, defense: 0 } as any,
energy: 10
});
(renderer as any).fovManager.visibleArray[1 * mockWorld.width + 3] = 1;