Add more test coverage
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user