1
This commit is contained in:
@@ -55,6 +55,7 @@ type BuildStoryContextFromState = (
|
||||
lastFunctionId?: string | null;
|
||||
observeSignsRequested?: boolean;
|
||||
recentActionResult?: string | null;
|
||||
currentStory?: StoryMoment | null;
|
||||
},
|
||||
) => StoryGenerationContext;
|
||||
|
||||
@@ -161,7 +162,10 @@ export async function runLocalStoryChoiceContinuation(params: {
|
||||
params.option,
|
||||
params.character,
|
||||
);
|
||||
if (resolvedChoice.optionKind === 'battle' || resolvedChoice.optionKind === 'escape') {
|
||||
if (
|
||||
resolvedChoice.optionKind === 'battle' ||
|
||||
resolvedChoice.optionKind === 'escape'
|
||||
) {
|
||||
throw new Error(
|
||||
`战斗与逃脱动作必须由后端结算,禁止进入本地 continuation:${params.option.functionId}`,
|
||||
);
|
||||
@@ -194,6 +198,7 @@ export async function runLocalStoryChoiceContinuation(params: {
|
||||
observeSignsRequested:
|
||||
params.option.functionId === 'idle_observe_signs',
|
||||
recentActionResult: combatResolutionContextText,
|
||||
currentStory: params.currentStory,
|
||||
}),
|
||||
projectedAvailableOptions
|
||||
? { availableOptions: projectedAvailableOptions }
|
||||
@@ -239,11 +244,11 @@ export async function runLocalStoryChoiceContinuation(params: {
|
||||
lastObserveSignsSceneId:
|
||||
params.option.functionId === 'idle_observe_signs'
|
||||
? (afterSequence.currentScenePreset?.id ?? null)
|
||||
: afterSequence.lastObserveSignsSceneId ?? null,
|
||||
: (afterSequence.lastObserveSignsSceneId ?? null),
|
||||
lastObserveSignsReport:
|
||||
params.option.functionId === 'idle_observe_signs'
|
||||
? response.storyText
|
||||
: afterSequence.lastObserveSignsReport ?? null,
|
||||
: (afterSequence.lastObserveSignsReport ?? null),
|
||||
storyHistory: nextHistory,
|
||||
},
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user