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

@@ -2,7 +2,7 @@
<view class="progress-bar" :style="{ height }">
<view class="progress-bar__fill" :style="fillStyle"></view>
<view v-if="showText" class="progress-bar__text">
{{ value }}/{{ max }}
{{ displayValue }}/{{ displayMax }}
</view>
</view>
</template>
@@ -22,6 +22,10 @@ const percentage = computed(() => {
return Math.min(100, Math.max(0, (props.value / props.max) * 100))
})
const displayValue = computed(() => Math.floor(props.value))
const displayMax = computed(() => Math.floor(props.max))
const fillStyle = computed(() => ({
width: `${percentage.value}%`,
backgroundColor: props.color