1
This commit is contained in:
@@ -689,15 +689,13 @@ export function createStoryNpcEncounterActions({
|
||||
currentStory?.npcChatState?.npcId === (encounter.id ?? encounter.npcName) &&
|
||||
currentStory.dialogue
|
||||
? [...currentStory.dialogue]
|
||||
: currentStory?.dialogue && currentStory.dialogue.length > 0
|
||||
? [...currentStory.dialogue]
|
||||
: [
|
||||
{
|
||||
speaker: 'npc' as const,
|
||||
speakerName: encounter.npcName,
|
||||
text: `${encounter.npcName}看着你,像是在等你把话接下去。`,
|
||||
},
|
||||
];
|
||||
: [
|
||||
{
|
||||
speaker: 'npc' as const,
|
||||
speakerName: encounter.npcName,
|
||||
text: `${encounter.npcName}\u770b\u7740\u4f60\uff0c\u50cf\u662f\u5728\u7b49\u4f60\u628a\u8bdd\u63a5\u4e0b\u53bb\u3002`,
|
||||
},
|
||||
];
|
||||
|
||||
setAiError(null);
|
||||
setCurrentStory(
|
||||
@@ -836,10 +834,9 @@ export function createStoryNpcEncounterActions({
|
||||
? [
|
||||
{
|
||||
speaker: 'system' as const,
|
||||
text:
|
||||
chatTurn.affinityDelta > 0
|
||||
? `${chatTurn.affinityText} 好感 +${chatTurn.affinityDelta}`
|
||||
: chatTurn.affinityText,
|
||||
text: `${chatTurn.affinityText} \u597d\u611f ${
|
||||
chatTurn.affinityDelta > 0 ? '+' : '-'
|
||||
}${Math.abs(chatTurn.affinityDelta)}`,
|
||||
affinityDelta: chatTurn.affinityDelta,
|
||||
},
|
||||
]
|
||||
@@ -1319,3 +1316,4 @@ export function createStoryNpcEncounterActions({
|
||||
exitNpcChat,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user