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:
45
config/enemies.js
Normal file
45
config/enemies.js
Normal file
@@ -0,0 +1,45 @@
|
||||
// 敌人配置
|
||||
export const ENEMY_CONFIG = {
|
||||
wild_dog: {
|
||||
id: 'wild_dog',
|
||||
name: '野狗',
|
||||
level: 1,
|
||||
baseStats: {
|
||||
health: 30,
|
||||
attack: 8,
|
||||
defense: 2,
|
||||
speed: 1.0
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 10, // 攻击点数
|
||||
ep: 8 // 闪避点数
|
||||
},
|
||||
expReward: 15,
|
||||
skillExpReward: 10,
|
||||
drops: [
|
||||
{ itemId: 'dog_skin', chance: 0.8, count: { min: 1, max: 1 } }
|
||||
]
|
||||
},
|
||||
|
||||
test_boss: {
|
||||
id: 'test_boss',
|
||||
name: '测试Boss',
|
||||
level: 5,
|
||||
baseStats: {
|
||||
health: 200,
|
||||
attack: 25,
|
||||
defense: 10,
|
||||
speed: 0.8
|
||||
},
|
||||
derivedStats: {
|
||||
ap: 25,
|
||||
ep: 15
|
||||
},
|
||||
expReward: 150,
|
||||
skillExpReward: 50,
|
||||
drops: [
|
||||
{ itemId: 'basement_key', chance: 1.0, count: { min: 1, max: 1 } }
|
||||
],
|
||||
isBoss: true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user