cleanup and fix ci
This commit is contained in:
@@ -130,7 +130,7 @@ function extractCanonicalNames(dungeonData) {
|
||||
|
||||
// Extract faction names from core concepts (if available)
|
||||
if (dungeonData.coreConcepts) {
|
||||
const factionMatch = dungeonData.coreConcepts.match(/Primary Faction[:\s]+([^\.]+)/i);
|
||||
const factionMatch = dungeonData.coreConcepts.match(/Primary Faction[:\s]+([^.]+)/i);
|
||||
if (factionMatch) {
|
||||
names.factions.push(factionMatch[1].trim());
|
||||
}
|
||||
@@ -472,7 +472,7 @@ Output as five separate numbered lists with these exact labels: "Locations:", "E
|
||||
|
||||
// Step 6: Player Choices and Consequences
|
||||
const npcNamesList = npcs.map(n => n.name).join(", ");
|
||||
const factionName = coreConcepts.match(/Primary Faction[:\s]+([^\.]+)/i)?.[1]?.trim() || "the primary faction";
|
||||
const factionName = coreConcepts.match(/Primary Faction[:\s]+([^.]+)/i)?.[1]?.trim() || "the primary faction";
|
||||
|
||||
const plotResolutionsRaw = await callOllama(
|
||||
`Based on all of the following elements, suggest 4-5 possible, non-conflicting story climaxes or plot resolutions for adventurers exploring this location. Each resolution must provide a meaningful choice with a tangible consequence, directly related to the Central Conflict, the Primary Faction, or the NPCs.
|
||||
|
||||
Reference in New Issue
Block a user