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

@@ -139,6 +139,7 @@
height="8rpx"
:showText="false"
/>
<text class="skill-item__progress">{{ skill.exp }}/{{ skill.maxExp }}</text>
</view>
</view>
<view v-if="filteredSkills.length === 0" class="skill-empty">
@@ -261,7 +262,7 @@ import { usePlayerStore } from '@/store/player'
import { useGameStore } from '@/store/game'
import { SKILL_CONFIG } from '@/config/skills'
import { ITEM_CONFIG } from '@/config/items'
import { startTask } from '@/utils/taskSystem'
import { startTask, endTask } from '@/utils/taskSystem'
import { getSkillDisplayInfo } from '@/utils/skillSystem'
import ProgressBar from '@/components/common/ProgressBar.vue'
import StatItem from '@/components/common/StatItem.vue'
@@ -426,7 +427,7 @@ const trainingTask = computed(() => {
function startTraining(skill) {
const result = startTask(game, player, 'training', {
skillId: skill.id,
duration: 300 // 5分钟
duration: 60 // 1分钟
})
if (result.success) {
@@ -438,7 +439,6 @@ function startTraining(skill) {
function stopTraining() {
if (trainingTask.value) {
const { endTask } = require('@/utils/taskSystem')
endTask(game, player, trainingTask.value.taskId, false)
game.addLog('停止了训练', 'info')
}
@@ -631,6 +631,15 @@ function cancelActiveTask(task) {
&__bar {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4rpx;
}
&__progress {
color: $text-muted;
font-size: 20rpx;
text-align: right;
}
}