Files
text-adventure-game/config/skills.js

222 lines
6.2 KiB
JavaScript
Raw Normal View History

// 技能配置
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' }
},
// ===== 制造技能 =====
crafting: {
id: 'crafting',
name: '制造',
type: 'life',
category: 'crafting',
icon: '🔨',
maxLevel: 20,
expPerLevel: (level) => level * 80,
parentSkill: null,
milestones: {
1: { desc: '解锁基础制造配方', effect: {} },
3: { desc: '制造时间-10%', effect: { craftingSpeed: 0.1 } },
5: { desc: '所有制造成功率+5%', effect: { craftingSuccessRate: 5 } },
10: { desc: '制造时间-25%', effect: { craftingSpeed: 0.25 } },
15: { desc: '所有制造成功率+10%', effect: { craftingSuccessRate: 10 } },
20: { desc: '制造品质+10', effect: { craftingQuality: 10 } }
},
unlockCondition: null
},
blacksmith: {
id: 'blacksmith',
name: '锻造',
type: 'life',
category: 'crafting',
icon: '⚒️',
maxLevel: 15,
expPerLevel: (level) => level * 120,
parentSkill: 'crafting',
milestones: {
1: { desc: '解锁武器锻造', effect: {} },
5: { desc: '武器品质+15', effect: { weaponQuality: 15 } },
10: { desc: '防具品质+15', effect: { armorQuality: 15 } },
15: { desc: '所有锻造成功率+15%', effect: { smithingSuccessRate: 15 } }
},
unlockCondition: {
type: 'skill',
skillId: 'crafting',
level: 5
}
},
herbalism: {
id: 'herbalism',
name: '草药学',
type: 'life',
category: 'crafting',
icon: '🌿',
maxLevel: 15,
expPerLevel: (level) => level * 60,
parentSkill: null,
milestones: {
1: { desc: '解锁药水制作', effect: {} },
3: { desc: '药水效果+20%', effect: { potionEffect: 1.2 } },
5: { desc: '解锁高级药水', effect: {} },
10: { desc: '药水效果+50%', effect: { potionEffect: 1.5 } },
15: { desc: '所有制药成功率+20%', effect: { herbingSuccessRate: 20 } }
},
unlockCondition: null
},
// ===== 义体相关技能 =====
prosthetic_adaptation: {
id: 'prosthetic_adaptation',
name: '义体适应性',
type: 'passive',
category: 'prosthetic',
icon: '🦾',
maxLevel: 20,
expPerLevel: (level) => level * 50,
parentSkill: null,
milestones: {
1: { desc: '解锁义体装备功能', effect: {} },
3: { desc: '义体技能伤害+10%', effect: { prostheticSkillDamage: 10 } },
5: { desc: '义体耐力消耗-20%', effect: { prostheticStaminaCost: -0.2 } },
10: { desc: '义体技能伤害+25%', effect: { prostheticSkillDamage: 25 } },
15: { desc: '义体冷却时间-30%', effect: { prostheticCooldown: -0.3 } },
20: { desc: '义体所有效果+50%', effect: { prostheticAllEffect: 50 } }
},
unlockCondition: {
type: 'item',
item: 'any_prosthetic'
},
desc: '使用义体时提升,增强义体效果'
},
// ===== 义体攻击技能 =====
steel_arm_slash: {
id: 'steel_arm_slash',
name: '合金斩击',
type: 'combat',
category: 'prosthetic_skill',
icon: '⚔️',
maxLevel: 1, // 义体技能不可升级
expPerLevel: () => 0,
parentSkill: null,
milestones: {},
unlockCondition: {
type: 'equipment',
item: 'steel_arm_prosthetic'
},
desc: '合金臂义体专属技能。造成200%攻击力的伤害。',
staminaCost: 15,
cooldown: 0,
damageMultiplier: 2.0
},
target_lock: {
id: 'target_lock',
name: '目标锁定',
type: 'combat',
category: 'prosthetic_skill',
icon: '🎯',
maxLevel: 1,
expPerLevel: () => 0,
parentSkill: null,
milestones: {},
unlockCondition: {
type: 'equipment',
item: 'optical_eye_prosthetic'
},
desc: '光学义眼专属技能。下一次攻击必定暴击。',
staminaCost: 8,
cooldown: 3,
buff: 'guaranteedCrit'
},
overdrive: {
id: 'overdrive',
name: '过载',
type: 'combat',
category: 'prosthetic_skill',
icon: '⚡',
maxLevel: 1,
expPerLevel: () => 0,
parentSkill: null,
milestones: {},
unlockCondition: {
type: 'equipment',
item: 'spinal_boost_prosthetic'
},
desc: '脊柱加速器专属技能。3秒内攻击速度+100%。',
staminaCost: 20,
cooldown: 5,
buff: 'attackSpeedBoost'
},
iron_skin: {
id: 'iron_skin',
name: '钢铁皮肤',
type: 'combat',
category: 'prosthetic_skill',
icon: '🛡️',
maxLevel: 1,
expPerLevel: () => 0,
parentSkill: null,
milestones: {},
unlockCondition: {
type: 'equipment',
item: 'dermal_armor_prosthetic'
},
desc: '真皮装甲专属技能。3秒内防御力+50%。',
staminaCost: 15,
cooldown: 4,
buff: 'defenseBoost'
}
}