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>
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
// NPC配置
|
|
export const NPC_CONFIG = {
|
|
injured_adventurer: {
|
|
id: 'injured_adventurer',
|
|
name: '受伤的冒险者',
|
|
location: 'camp',
|
|
dialogue: {
|
|
first: {
|
|
text: '你终于醒了...这里是营地,暂时安全。外面的世界很危险,带上这根木棍防身吧。',
|
|
choices: [
|
|
{ text: '谢谢', next: 'thanks' },
|
|
{ text: '这是什么地方?', next: 'explain' }
|
|
]
|
|
},
|
|
thanks: {
|
|
text: '小心野狗,它们通常成群出现。如果你能击败五只野狗,或许能找到通往深处的路。',
|
|
choices: [
|
|
{ text: '明白了', next: null, action: 'give_stick' }
|
|
]
|
|
},
|
|
explain: {
|
|
text: '这是末世后的世界...具体细节我也记不清了。总之,活下去是第一要务。',
|
|
choices: [
|
|
{ text: '我会的', next: 'thanks', action: 'give_stick' }
|
|
]
|
|
}
|
|
}
|
|
},
|
|
|
|
merchant_zhang: {
|
|
id: 'merchant_zhang',
|
|
name: '商人老张',
|
|
location: 'market',
|
|
dialogue: {
|
|
first: {
|
|
text: '欢迎光临!看看有什么需要的?',
|
|
choices: [
|
|
{ text: '查看商品', next: null, action: 'open_shop' },
|
|
{ text: '离开', next: null }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|