Fix bug where slower enemies (ie rat) would never get scheduled a turn
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user