Initial commit: Text Adventure Game
Features: - Combat system with AP/EP hit calculation and three-layer defense - Auto-combat/farming mode - Item system with stacking support - Skill system with levels, milestones, and parent skill sync - Shop system with dynamic pricing - Inventory management with bulk selling - Event system - Game loop with offline earnings - Save/Load system Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
53
config/skills.js
Normal file
53
config/skills.js
Normal file
@@ -0,0 +1,53 @@
|
||||
// 技能配置
|
||||
export const SKILL_CONFIG = {
|
||||
// 战斗技能
|
||||
stick_mastery: {
|
||||
id: 'stick_mastery',
|
||||
name: '木棍精通',
|
||||
type: 'combat',
|
||||
category: 'weapon',
|
||||
icon: '',
|
||||
maxLevel: 20,
|
||||
expPerLevel: (level) => level * 100,
|
||||
milestones: {
|
||||
5: { desc: '所有武器暴击率+2%', effect: { critRate: 2 } },
|
||||
10: { desc: '所有武器攻击力+5%', effect: { attackBonus: 5 } },
|
||||
15: { desc: '武器熟练度获取速度+20%', effect: { expRate: 1.2 } },
|
||||
20: { desc: '所有武器暴击伤害+0.3', effect: { critMult: 0.3 } }
|
||||
},
|
||||
unlockCondition: null, // 初始解锁
|
||||
unlockItem: 'wooden_stick'
|
||||
},
|
||||
|
||||
reading: {
|
||||
id: 'reading',
|
||||
name: '阅读',
|
||||
type: 'life',
|
||||
category: 'reading',
|
||||
icon: '',
|
||||
maxLevel: 20,
|
||||
expPerLevel: (level) => level * 50,
|
||||
milestones: {
|
||||
3: { desc: '所有技能经验获取+5%', effect: { globalExpRate: 5 } },
|
||||
5: { desc: '阅读速度+50%', effect: { readingSpeed: 1.5 } },
|
||||
10: { desc: '完成书籍给予额外主经验+100', effect: { bookExpBonus: 100 } }
|
||||
},
|
||||
unlockCondition: null,
|
||||
unlockItem: 'old_book'
|
||||
},
|
||||
|
||||
night_vision: {
|
||||
id: 'night_vision',
|
||||
name: '夜视',
|
||||
type: 'passive',
|
||||
category: 'environment',
|
||||
icon: '',
|
||||
maxLevel: 10,
|
||||
expPerLevel: (level) => level * 30,
|
||||
milestones: {
|
||||
5: { desc: '黑暗惩罚-10%', effect: { darkPenaltyReduce: 10 } },
|
||||
10: { desc: '黑暗惩罚-25%', effect: { darkPenaltyReduce: 25 } }
|
||||
},
|
||||
unlockCondition: { location: 'basement' }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user