feat: implement per-enemy damage application (spec §3.2)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m6s

- Add applyDamageToRoom() function targeting individual enemies
- Add lowestHPEnemy() helper for focus-fire targeting
- AoE spells distribute damage across all enemies
- Single-target attacks hit lowest HP enemy first
- Refactor processCombatTick spell/equipment/melee/DoT damage to use per-enemy system
- Update golemApplyDamageToRoom in golem-combat pipeline for per-enemy targeting
- Add currentRoom to CombatTickResult and sync through gameStore
- Update combat-actions tests with proper enemy setup for per-enemy tests
- Extract combat-damage.ts module to stay under 400-line limit
This commit is contained in:
2026-06-04 11:37:21 +02:00
parent 8dde423526
commit 23e629f37e
10 changed files with 182 additions and 85 deletions
+1
View File
@@ -354,6 +354,7 @@ Mana-Loop/
│ │ │ │ │ └── pact-ritual.ts
│ │ │ │ ├── attunementStore.ts
│ │ │ │ ├── combat-actions.ts
│ │ │ │ ├── combat-damage.ts
│ │ │ │ ├── combat-descent-actions.ts
│ │ │ │ ├── combat-state.types.ts
│ │ │ │ ├── combatStore.ts