Files
Genarrative/src/services/storyEngine/epilogueComposer.ts
kdletters cbc27bad4a
Some checks failed
CI / verify (push) Has been cancelled
init with react+axum+spacetimedb
2026-04-26 18:06:23 +08:00

20 lines
616 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { CompanionResolution, EndingState } from '../../types';
export function buildEpilogueSummary(params: {
endingState: EndingState;
companionResolutions: CompanionResolution[];
}) {
const companionText = params.companionResolutions.length > 0
? params.companionResolutions
.slice(0, 3)
.map((resolution) => resolution.summary)
.join(' ')
: '与你同行的人们各自带着新的立场散入余波里。';
return [
`${params.endingState.title}${params.endingState.summary}`,
params.endingState.worldOutcomeSummary,
companionText,
].join('\n');
}