claude-code-best/packages/pokemon
claude-code-best 7c64199fc5 fix: 修复战斗系统 bug(switch 映射、async learnableMoves、类型安全)
- engine.ts: switch 动作改为映射 creatureId 到 party slot index
- settlement.ts: 改用 for-of 循环支持 async learnableMoves 检测
- types.ts: miss 事件增加 side 字段,消除 as any
- BattleFlow.tsx: handleAction 改为 async 支持 await settleBattle
- battle.test.ts: 补充缺失的 async 标记

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 04:12:13 +08:00
..
scripts feat: 第一版可用 pokemon 2026-04-21 19:03:31 +08:00
src fix: 修复战斗系统 bug(switch 映射、async learnableMoves、类型安全) 2026-04-22 04:12:13 +08:00
package.json feat: Phase 2 — 战斗引擎 @pkmn 薄适配层 2026-04-22 00:31:42 +08:00
tsconfig.json feat: 第一版可用 pokemon 2026-04-21 19:03:31 +08:00