refactor(slay-the-spire-like): update combat targeting and effect logic

Refactor combat targeting types and effect application logic in the
Slay the Spire-like sample.

- Update `getEffectTargets` to use `IntentEffectTarget` and more
  descriptive target keys (e.g., `eachEnemy`, `randomEnemy`).
- Update `promptMainAction` to use `enemy` instead of `single` for
  card target types.
- Refactor `addInstantEffectTriggers` to remove unused effect loading
  and improve enemy/card instantiation logic
This commit is contained in:
2026-04-22 19:35:37 +08:00
parent 38fd46618e
commit a5e2e4888e
7 changed files with 170 additions and 160 deletions
@@ -33,7 +33,7 @@ function createTestCardData(id: string, name: string, desc: string): CardData {
type: "item",
costType: "energy",
costCount: 1,
targetType: "single",
targetType: "enemy",
effects: [],
};
}