feat: 实现游戏核心系统和UI组件
核心系统: - combatSystem: 战斗逻辑、伤害计算、战斗状态管理 - skillSystem: 技能系统、技能解锁、经验值、里程碑 - taskSystem: 任务系统、任务类型、任务执行和完成 - eventSystem: 事件系统、随机事件处理 - environmentSystem: 环境系统、时间流逝、区域效果 - levelingSystem: 升级系统、属性成长 - soundSystem: 音效系统 配置文件: - enemies: 敌人配置、掉落表 - events: 事件配置、事件效果 - items: 物品配置、装备属性 - locations: 地点配置、探索事件 - skills: 技能配置、技能树 UI组件: - CraftingDrawer: 制造界面 - InventoryDrawer: 背包界面 - 其他UI优化和动画 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
import { LOCATION_CONFIG } from '@/config/locations.js'
|
||||
import { SKILL_CONFIG } from '@/config/skills.js'
|
||||
import { applyMilestoneBonus } from './skillSystem.js'
|
||||
|
||||
/**
|
||||
* 环境类型枚举
|
||||
@@ -198,7 +199,10 @@ export function processEnvironmentExp(gameStore, playerStore, locationId, deltaT
|
||||
}
|
||||
|
||||
// 检查里程碑奖励(需要调用技能系统)
|
||||
// TODO: 调用 applyMilestoneBonus
|
||||
const newLevel = playerStore.skills[adaptSkillId].level
|
||||
if (SKILL_CONFIG[adaptSkillId].milestones && SKILL_CONFIG[adaptSkillId].milestones[newLevel]) {
|
||||
applyMilestoneBonus(playerStore, adaptSkillId, newLevel)
|
||||
}
|
||||
}
|
||||
|
||||
return { [adaptSkillId]: finalExp }
|
||||
|
||||
Reference in New Issue
Block a user