Files
text-adventure-game/config/enemies.js
Claude cb412544e9 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>
2026-01-21 17:13:51 +08:00

46 lines
819 B
JavaScript

// 敌人配置
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
}
}