Add more test coverage

This commit is contained in:
Peter Stockings
2026-01-05 14:03:25 +11:00
parent ce68470ab1
commit f86daac9ac
5 changed files with 260 additions and 189 deletions

View File

@@ -194,6 +194,8 @@ function handleAttack(w: World, actor: Actor, action: { targetId: EntityId }, em
if (em) em.removeActor(target.id);
else w.actors.delete(target.id);
// Spawn EXP Orb
const enemyDef = (GAME_CONFIG.enemies as any)[target.type || ""];
const expAmount = enemyDef?.expValue || 0;