feat: effect and triggers

This commit is contained in:
2026-04-17 12:58:12 +08:00
parent aa36f3ea67
commit f775d51a58
5 changed files with 47 additions and 4 deletions
@@ -79,3 +79,7 @@ export function* getAliveEnemies(state: CombatState) {
}
}
}
export function getCombatEntity(state: CombatState, entityKey: string){
return entityKey === 'player' ? state.player : state.enemies.find(e => e.id === entityKey);
}