Intégration du graphe et du multi-branche pour la partie campagne

This commit is contained in:
2026-04-21 05:05:11 +02:00
parent 1a5b6f8d79
commit 67818f0d3d
31 changed files with 1933 additions and 13 deletions

View File

@@ -179,7 +179,9 @@ class ChatUseCase:
return (
"--- CAMPAGNE COURANTE ---\n"
f"Nom : {ctx.campaign_name}{desc}{lore_note}\n\n"
f"Structure narrative :\n{arcs_block}"
"Structure narrative (les flèches → indiquent des transitions de scène "
"déclenchées par un choix des joueurs) :\n"
f"{arcs_block}"
)
@staticmethod
@@ -212,6 +214,11 @@ class ChatUseCase:
block.append(f" - {scene.name} (scène){sc_hint}")
if scene.description:
block.append(f" Description : {scene.description}")
for br in scene.branches:
cond = f" (si : {br.condition})" if br.condition else ""
block.append(
f'"{br.label}" vers {br.target_scene_name}{cond}'
)
return block
@staticmethod