feat: 扩展游戏内容和地图系统优化
- MiniMap: 添加缩放/平移功能,优化节点显示样式 - 新增洞穴相关敌人和Boss(洞穴蝙蝠、洞穴领主) - 新增义体类物品(钢制义臂、光学义眼、真皮护甲) - 扩展武器技能系统(剑、斧、钝器、弓箭精通) - 更新商店配置和义体相关功能 - 完善玩家/游戏Store状态管理 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,11 +14,16 @@ export const ENEMY_CONFIG = {
|
||||
health: 35,
|
||||
attack: 8,
|
||||
defense: 2,
|
||||
strength: 8, // 力量,影响攻击
|
||||
agility: 6, // 敏捷,影响闪避(降低EP,提高玩家命中率)
|
||||
dexterity: 7, // 灵巧,影响命中
|
||||
intuition: 3, // 智力,影响AP/EP
|
||||
vitality: 8, // 体质
|
||||
speed: 1.2
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 8,
|
||||
ep: 10
|
||||
ep: 6 // 降低EP值,使玩家更容易命中
|
||||
},
|
||||
expReward: 20,
|
||||
skillExpReward: 12,
|
||||
@@ -36,11 +41,16 @@ export const ENEMY_CONFIG = {
|
||||
health: 20,
|
||||
attack: 5,
|
||||
defense: 1,
|
||||
strength: 5,
|
||||
agility: 10, // 高敏捷,难命中
|
||||
dexterity: 6,
|
||||
intuition: 2,
|
||||
vitality: 5,
|
||||
speed: 1.5
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 6,
|
||||
ep: 12
|
||||
ep: 11 // 高闪避,符合老鼠特性
|
||||
},
|
||||
expReward: 10,
|
||||
skillExpReward: 6,
|
||||
@@ -58,11 +68,16 @@ export const ENEMY_CONFIG = {
|
||||
health: 50,
|
||||
attack: 15,
|
||||
defense: 5,
|
||||
strength: 14,
|
||||
agility: 10,
|
||||
dexterity: 12,
|
||||
intuition: 6,
|
||||
vitality: 12,
|
||||
speed: 1.3
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 14,
|
||||
ep: 13
|
||||
ep: 11
|
||||
},
|
||||
expReward: 40,
|
||||
skillExpReward: 20,
|
||||
@@ -80,6 +95,11 @@ export const ENEMY_CONFIG = {
|
||||
health: 60,
|
||||
attack: 18,
|
||||
defense: 8,
|
||||
strength: 16,
|
||||
agility: 9,
|
||||
dexterity: 14,
|
||||
intuition: 8,
|
||||
vitality: 15,
|
||||
speed: 1.0
|
||||
},
|
||||
derivedStats: {
|
||||
@@ -103,17 +123,23 @@ export const ENEMY_CONFIG = {
|
||||
health: 250,
|
||||
attack: 30,
|
||||
defense: 15,
|
||||
strength: 25,
|
||||
agility: 14,
|
||||
dexterity: 20,
|
||||
intuition: 12,
|
||||
vitality: 25,
|
||||
speed: 1.1
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 30,
|
||||
ep: 18
|
||||
ep: 16
|
||||
},
|
||||
expReward: 200,
|
||||
skillExpReward: 80,
|
||||
drops: [
|
||||
{ itemId: 'basement_key', chance: 1.0, count: { min: 1, max: 1 } },
|
||||
{ itemId: 'dog_skin', chance: 0.5, count: { min: 2, max: 4 } }
|
||||
{ itemId: 'dog_skin', chance: 0.5, count: { min: 2, max: 4 } },
|
||||
{ itemId: 'steel_arm_prosthetic', chance: 0.3, count: { min: 1, max: 1 }, fixedQuality: true } // 义体掉落
|
||||
],
|
||||
isBoss: true
|
||||
},
|
||||
@@ -127,11 +153,16 @@ export const ENEMY_CONFIG = {
|
||||
health: 40,
|
||||
attack: 25,
|
||||
defense: 3,
|
||||
strength: 20,
|
||||
agility: 16, // 高闪避
|
||||
dexterity: 18,
|
||||
intuition: 6,
|
||||
vitality: 8,
|
||||
speed: 1.8
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 22,
|
||||
ep: 24
|
||||
ep: 18 // 高闪避,但不是不可能命中
|
||||
},
|
||||
expReward: 70,
|
||||
skillExpReward: 35,
|
||||
@@ -149,17 +180,24 @@ export const ENEMY_CONFIG = {
|
||||
health: 500,
|
||||
attack: 50,
|
||||
defense: 25,
|
||||
strength: 45,
|
||||
agility: 18,
|
||||
dexterity: 35,
|
||||
intuition: 20,
|
||||
vitality: 50,
|
||||
speed: 0.9
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 50,
|
||||
ep: 25
|
||||
ep: 22
|
||||
},
|
||||
expReward: 500,
|
||||
skillExpReward: 200,
|
||||
drops: [
|
||||
{ itemId: 'rare_gem', chance: 0.8, count: { min: 1, max: 1 } },
|
||||
{ itemId: 'iron_sword', chance: 0.3, count: { min: 1, max: 1 } }
|
||||
{ itemId: 'iron_sword', chance: 0.3, count: { min: 1, max: 1 } },
|
||||
{ itemId: 'optical_eye_prosthetic', chance: 0.4, count: { min: 1, max: 1 }, fixedQuality: true },
|
||||
{ itemId: 'dermal_armor_prosthetic', chance: 0.3, count: { min: 1, max: 1 }, fixedQuality: true }
|
||||
],
|
||||
isBoss: true
|
||||
}
|
||||
|
||||
@@ -494,6 +494,71 @@ export const ITEM_CONFIG = {
|
||||
description: '一本神圣的书籍,可以用来祈祷。',
|
||||
stackable: false,
|
||||
effect: { sanity: 10 }
|
||||
},
|
||||
|
||||
// ===== 义体(仅Boss掉落,无品质) =====
|
||||
steel_arm_prosthetic: {
|
||||
id: 'steel_arm_prosthetic',
|
||||
name: '合金臂义体',
|
||||
type: 'prosthetic',
|
||||
subtype: 'arm',
|
||||
icon: '🦾',
|
||||
baseValue: 2000,
|
||||
quality: 150, // 固定品质
|
||||
fixedQuality: true, // 标记为固定品质
|
||||
stats: { strength: 8, attack: 10 },
|
||||
skill: 'steel_arm_slash', // 提供的技能
|
||||
skillUnlocked: true,
|
||||
description: '用合金制成的义体手臂,大幅增强力量。可使用【合金斩击】技能。',
|
||||
bossOnly: true // 仅Boss掉落
|
||||
},
|
||||
|
||||
optical_eye_prosthetic: {
|
||||
id: 'optical_eye_prosthetic',
|
||||
name: '光学义眼',
|
||||
type: 'prosthetic',
|
||||
subtype: 'head',
|
||||
icon: '👁️',
|
||||
baseValue: 1800,
|
||||
quality: 140,
|
||||
fixedQuality: true,
|
||||
stats: { dexterity: 8, intuition: 5 },
|
||||
skill: 'target_lock', // 提供的技能
|
||||
skillUnlocked: true,
|
||||
description: '植入式义眼,提高命中和暴击。可使用【目标锁定】技能。',
|
||||
bossOnly: true
|
||||
},
|
||||
|
||||
spinal_boost_prosthetic: {
|
||||
id: 'spinal_boost_prosthetic',
|
||||
name: '脊柱加速器',
|
||||
type: 'prosthetic',
|
||||
subtype: 'spine',
|
||||
icon: '🦴',
|
||||
baseValue: 2500,
|
||||
quality: 160,
|
||||
fixedQuality: true,
|
||||
stats: { agility: 10, speed: 15 },
|
||||
skill: 'overdrive', // 提供的技能
|
||||
skillUnlocked: true,
|
||||
description: '植入脊柱的加速装置,极大提升速度。可使用【过载】技能。',
|
||||
bossOnly: true
|
||||
},
|
||||
|
||||
dermal_armor_prosthetic: {
|
||||
id: 'dermal_armor_prosthetic',
|
||||
name: '真皮装甲',
|
||||
type: 'prosthetic',
|
||||
subtype: 'body',
|
||||
icon: '🦾',
|
||||
baseValue: 2200,
|
||||
quality: 155,
|
||||
fixedQuality: true,
|
||||
stats: { defense: 15, vitality: 8 },
|
||||
skill: 'iron_skin', // 提供的技能
|
||||
skillUnlocked: true,
|
||||
description: '植入皮下的装甲层,提供强大防御。可使用【钢铁皮肤】技能。',
|
||||
bossOnly: true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,6 +571,7 @@ export const ITEM_CATEGORIES = {
|
||||
armor: { id: 'armor', name: '防具', icon: '🛡️' },
|
||||
shield: { id: 'shield', name: '盾牌', icon: '🛡️' },
|
||||
accessory: { id: 'accessory', name: '饰品', icon: '💍' },
|
||||
prosthetic: { id: 'prosthetic', name: '义体', icon: '🦾' },
|
||||
consumable: { id: 'consumable', name: '消耗品', icon: '🧪' },
|
||||
book: { id: 'book', name: '书籍', icon: '📖' },
|
||||
material: { id: 'material', name: '素材', icon: '📦' },
|
||||
|
||||
106
config/skills.js
106
config/skills.js
@@ -111,5 +111,111 @@ export const SKILL_CONFIG = {
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user