Commit Graph

10 Commits

Author SHA1 Message Date
0658960b70 优化 2025-12-06 22:59:52 +08:00
6aedb96342 优化 2025-12-06 20:52:40 +08:00
hantao
c77620127d 技能优化 2025-12-05 17:38:10 +08:00
0e6351d328 抽象:统一法术显示逻辑到 SpellDisplay.php
- ItemDisplay.php:移除 formatSpellCompact() 方法(已在 SpellDisplay 中实现)
- ItemDisplay.php:简化 renderSlot() 方法,移除法术特定逻辑
- ItemDisplay.php:更新 renderListItem() 注释,说明法术由 SpellDisplay 处理
- InventoryPanel.php:增强列表显示,对法术使用 SpellDisplay::formatSpellCompact()
- StatsPanel.php:技能槽位显示改用 SpellDisplay::renderSlot()

结果:
✓ 所有法术显示逻辑已集中到 SpellDisplay.php
✓ ItemDisplay.php 专注于装备显示逻辑
✓ 调用者正确路由:法术→SpellDisplay, 装备→ItemDisplay
✓ 保持向后兼容性,同时提高代码组织性

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 00:02:15 +08:00
c2a2e93ff3 优化 2025-12-04 23:52:50 +08:00
ab90eb8435 背包和物品列表增强:支持显示法术的计算方式和基础数值
新增功能:
- ItemDisplay.formatSpellCompact: 格式化法术的简洁信息
  - 显示计算方式(缩写形式)
  - 显示品质相关的基础数值(伤害/治疗倍数)
- ItemDisplay.renderListItem: 增强支持法术物品显示
  - 法术物品显示计算方式和基础数值
  - 装备物品仍显示属性和词条

改进内容:
- 背包列表中显示法术的详细计算方式(如 [魔攻] 1.6x)
- 法术物品不显示词条(仅装备显示词条)
- InventoryPanel 导入 SpellDisplay 以支持未来扩展
- 保持与战斗系统中法术显示的一致性

格式示例:
装备: 名称 Lv.5 +3 (武器) (物攻+50 暴伤+30) 3词条
法术: 名称 Lv.5 (法术) [魔攻] 1.6x

🧙 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 23:03:49 +08:00
hantao
05bff41e35 逻辑优化 2025-12-03 18:15:54 +08:00
hantao
bacc28acce 操作优化 2025-12-02 17:56:53 +08:00
hantao
b4ec385827 添加怪物群 2025-12-02 13:45:20 +08:00
hantao
0c6cbd669a first 2025-12-01 18:13:15 +08:00