Simplify custom world result editing controls
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
||||
import {
|
||||
acceptQuest,
|
||||
applyQuestProgressFromHostileNpcDefeat,
|
||||
applyQuestProgressFromNpcTalk,
|
||||
applyQuestProgressFromSpar,
|
||||
buildQuestAcceptResultText,
|
||||
buildQuestForEncounter,
|
||||
@@ -456,8 +457,13 @@ export function createStoryNpcEncounterActions({
|
||||
]
|
||||
: provisionalHistory
|
||||
: appendHistory(gameState, actionText, finalDialogueText);
|
||||
const progressedQuests = applyQuestProgressFromNpcTalk(
|
||||
nextState.quests,
|
||||
encounter.id ?? encounter.npcName,
|
||||
);
|
||||
const finalState = {
|
||||
...nextState,
|
||||
quests: progressedQuests,
|
||||
storyHistory: finalHistory,
|
||||
};
|
||||
const finalOpeningCampContext = buildOpeningCampChatContext(
|
||||
|
||||
Reference in New Issue
Block a user