claude-code-best
|
74682b2a82
|
refactor: 代码优化 — 扩展类型覆盖、修复变量遮蔽、移除未使用导入
- engine.ts: 扩展 getSpeciesMoves 覆盖全部 18 种属性
- settlement.ts: 重命名 species → oppSpecies 避免遮蔽外层变量
- storage.ts: addItemToBag/removeItemFromBag 深拷贝 bag items 避免修改原对象
- BattleFlow.tsx: 移除未使用导入和条件 useInput 调用(React hooks 规则)
- BattleView.tsx: 移除未使用的 BattlePokemon/MoveOption/Dex 导入
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:49:48 +08:00 |
|
claude-code-best
|
100b1589f2
|
fix: 修复 BattleFlow 进化阶段输入处理 + 清理无用文件
- BattleFlow.tsx: useInput hook 提升到顶层避免 React hooks 规则违规
- 删除未使用的 battle/adapter.ts 和 battle/handler.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:47:05 +08:00 |
|
claude-code-best
|
e3570f8cdb
|
feat: 添加 BattleFlow 战斗状态机组件 (Phase 3)
实现完整的战斗 UI 流程:配置 → 战斗 → 换人/道具 → 结果 → 学招 → 进化 → 完成
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-22 00:38:17 +08:00 |
|
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
|
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
|
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 |
|