claude-code-best
|
f5a97011e8
|
feat: Phase 3 — 战斗 UI 终端交互组件
- BattleConfigPanel: 战斗前配置(队伍展示 + 对手选择)
- BattleView: 战斗主界面(双方 HP + 招式选择 + 事件日志)
- SwitchPanel: 换人选择面板
- ItemPanel: 道具使用面板
- BattleResultPanel: 战斗结算展示
- MoveLearnPanel: 新招式学习面板
- HP 条颜色分级(绿/黄/红)
- 事件日志中文格式化
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:37:26 +08:00 |
|
claude-code-best
|
a3fc348421
|
feat: Phase 2 — 战斗引擎 @pkmn 薄适配层
- 安装 @pkmn/protocol @pkmn/client @pkmn/view
- 新建 battle/types.ts: BattleState, BattlePokemon, BattleEvent, PlayerAction 等
- 新建 battle/adapter.ts: Creature→PokemonSet 转换, 野生对手生成
- 新建 battle/engine.ts: createBattle() + executeTurn() 薄封装 @pkmn/sim
- 新建 battle/handler.ts: @pkmn/protocol Handler→BattleEvent 转换
- 新建 battle/ai.ts: 随机合法招式 AI 决策
- 新建 battle/settlement.ts: 战后结算 XP/EV/升级/进化/招式学习
- 新建 battle/index.ts: 统一导出
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:31:42 +08:00 |
|
claude-code-best
|
12cbb7c4c7
|
feat: Phase 1 — 数据模型升级 Creature v2 + PCBox/Bag
- 新增 MoveSlot, PCBox, Bag, ItemId 类型
- Creature 扩展 nature/moves/ability/heldItem/pokeball 字段
- BuddyData 升级 v2: 新增 boxes, bag, battlesWon/battlesLost
- 新建 data/learnsets.ts: getDefaultMoveset/getDefaultAbility/getNewLearnableMoves
- storage.ts v1→v2 迁移: 回填 nature/moves/ability,新增 PCBox/Bag
- 新增 PCBox 操作: deposit/withdraw/move/rename/findLocation/release
- 新增 Bag 操作: add/remove/getCount
- generateCreature/loadBuddyData/hatchEgg 改为 async (Dex.learnsets.get 异步)
- 修复 PokedexView: activeCreatureId → party[0]
- 更新测试文件: async/await + v2 BuddyData fixtures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:20:08 +08:00 |
|
claude-code-best
|
96f3e1b309
|
refactor: Phase 0 — 清除重复,委托 @pkmn 生态
- 删除硬编码 NATURES 常量,nature.ts 委托 Dex.natures
- 删除硬编码 EVOLUTION_CHAINS,evolution.ts 委托 Dex.species.evos
- calculateStats() 手写公式替换为 gen.stats.calc()
- 统一 TO_DEX_STAT/FROM_DEX_STAT 映射到 pkmn.ts
- 简化 species.ts buildEvolutionChain() 复用 getNextEvolution()
- 添加 NatureName/NatureEffect 类型定义
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:05:05 +08:00 |
|
claude-code-best
|
970fcd627f
|
feat: 又是更新了一大堆
|
2026-04-21 21:38:13 +08:00 |
|
claude-code-best
|
f74492617b
|
feat: 一大堆优化
|
2026-04-21 20:31:10 +08:00 |
|
claude-code-best
|
722aa6c97a
|
feat: 扩展精灵动画系统并新增 SpriteAnimator 组件
- 新增动画模式: breathe, bounce, walkLeft, walkRight, flip
- 新增 SpriteAnimator 组件,内置 tick 循环和居中渲染
- BuddyPanel 使用 SpriteAnimator 替代手动渲染
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-21 19:23:24 +08:00 |
|
claude-code-best
|
88ddba6c23
|
feat: 第一版可用 pokemon
|
2026-04-21 19:03:31 +08:00 |
|