feat: 优化游戏体验和系统平衡性

- 修复商店物品名称显示问题,添加堆叠物品出售数量选择
- 自动战斗状态持久化,战斗结束显示"寻找中"状态
- 战斗日志显示经验获取详情(战斗经验、武器经验)
- 技能进度条显示当前/最大经验值
- 阅读自动解锁技能并持续获得阅读经验,背包可直接阅读
- 优化训练平衡:时长60秒,经验5点/秒,耐力消耗降低
- 实现自然回复系统:基于体质回复HP/耐力,休息提供3倍加成
- 战斗和训练时不进行自然回复

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-01-23 19:40:55 +08:00
parent 16223c89a5
commit cef974d94f
9 changed files with 447 additions and 29 deletions

View File

@@ -155,6 +155,7 @@ function serializeGameData(gameStore) {
activeTasks: JSON.parse(JSON.stringify(gameStore.activeTasks || [])),
negativeStatus: JSON.parse(JSON.stringify(gameStore.negativeStatus || [])),
marketPrices: JSON.parse(JSON.stringify(gameStore.marketPrices || {})),
autoCombat: gameStore.autoCombat || false, // 保存自动战斗状态
// 不保存日志logs不持久化
// 不保存战斗状态(重新登录时退出战斗)
// 不保存当前事件(重新登录时清除)
@@ -262,6 +263,11 @@ function applyGameData(gameStore, data) {
gameStore.marketPrices = JSON.parse(JSON.stringify(data.marketPrices))
}
// 自动战斗状态
if (data.autoCombat !== undefined) {
gameStore.autoCombat = data.autoCombat
}
// 定时事件
if (data.scheduledEvents) {
gameStore.scheduledEvents = JSON.parse(JSON.stringify(data.scheduledEvents))