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

93 lines
3.0 KiB
JavaScript
Raw Normal View History

// 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 }
]
}
}
},
ripper_doc: {
id: 'ripper_doc',
name: '义体医生',
location: 'blackmarket',
icon: '👨‍⚕️',
dialogue: {
first: {
text: '嗯...你是新面孔。我看你的身体还很"原始",需要做点升级吗?',
choices: [
{ text: '什么是义体?', next: 'explain_prosthetic' },
{ text: '我想安装义体', next: 'install_prosthetic' },
{ text: '我想卸下义体', next: 'remove_prosthetic' },
{ text: '离开', next: null }
]
},
explain_prosthetic: {
text: '义体是机械植入物,可以大幅增强你的能力。它们通常只有从强大的敌人身上才能获得。装备义体后,你还能获得特殊的攻击技能。',
choices: [
{ text: '我想安装义体', next: 'install_prosthetic' },
{ text: '离开', next: null }
]
},
install_prosthetic: {
text: '让我看看...你有以下义体可以安装:\n{prosthetic_list}\n\n选择一件装备吧。',
choices: [
{ text: '{refresh}', next: 'install_prosthetic', action: 'refresh_list' },
{ text: '返回', next: 'first' }
],
dynamicChoices: 'prosthetic_inventory'
},
remove_prosthetic: {
text: '卸下义体是个精细的手术...你确定吗?当前装备的义体:\n{equipped_prosthetic}',
choices: [
{ text: '确定卸下', next: null, action: 'remove_prosthetic' },
{ text: '返回', next: 'first' }
]
}
},
services: {
install_prosthetic: {
cost: 500 // 安装费用
},
remove_prosthetic: {
cost: 200 // 卸下费用
}
}
}
}