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

@@ -94,7 +94,8 @@ describe('World Utilities', () => {
type: "player",
pos: { x: 3, y: 3 },
speed: 100,
stats: { hp: 10, maxHp: 10, attack: 1, defense: 0 } as any
stats: { hp: 10, maxHp: 10, attack: 1, defense: 0 } as any,
energy: 100
});
expect(isBlocked(world, 3, 3)).toBe(true);