Throwing an item shouldnt trigger wait

This commit is contained in:
Peter Stockings
2026-01-06 21:14:25 +11:00
parent 7ae1fa6671
commit 6e060013f7
4 changed files with 15 additions and 1 deletions

View File

@@ -20,6 +20,10 @@ export function applyAction(w: World, actorId: EntityId, action: Action, em?: En
case "attack":
events.push(...handleAttack(w, actor, action, em));
break;
case "throw":
// Throwing consumes a turn but visuals are handled by the renderer/scene directly
// so we do NOT emit a "waited" event.
break;
case "wait":
default:
events.push({ type: "waited", actorId });