Attempting to move into tile that blocks shouldnt result in wait action

This commit is contained in:
Peter Stockings
2026-01-06 21:23:25 +11:00
parent 6e060013f7
commit 309ab19e8c
4 changed files with 73 additions and 5 deletions

View File

@@ -123,9 +123,9 @@ function handleMove(w: World, actor: Actor, action: { dx: number; dy: number },
}
return events;
} else {
return [{ type: "waited", actorId: actor.id }];
}
return [{ type: "move-blocked", actorId: actor.id, x: nx, y: ny }];
}