Mentor d'écriture : champs d'histoire pour scènes, arcs et PNJ
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 52s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 54s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 54s

- Scène : « Utilité » (ce que l'histoire perd si on la coupe) et « Tactique
  et moral des adversaires » (comment ils se battent, quand ils fuient ou se
  rendent), dans l'éditeur, la vue et le PDF (réservés au MJ).
- Arc : « Histoire cachée » (la vérité que les joueurs reconstituent) et
  « Accroches » (une par ligne), nouvelle section de l'éditeur ; dans le PDF,
  histoire cachée en encadré secret et accroches, version MJ uniquement.
- PNJ : bloc « Rôle dans l'histoire », indépendant du système de jeu : rôle
  (opposant, allié, ressource, figurant), motivation, ce qu'il sait,
  signe distinctif. Dans le PDF, le signe distinctif se voit aussi en
  version joueurs ; rôle, motivation et savoir restent réservés au MJ.
- Huit fiches du coach pour ces champs, rédigées pour LoreMind.
- Relecture d'éditeur : WRITE-016 (opposant ou allié sans motivation, lien
  vers la fiche du PNJ), WRITE-017 (arc avec une seule accroche) ; un combat
  dont la tactique est écrite n'est plus signalé « sans but » (WRITE-008).
- Migration V27 (colonnes scènes/arcs, fiche PNJ en JSON) ; champs
  conservés à l'export/import de campagne.

Vérifié : core clean verify (1277 tests, dont règles, rendu MJ/joueurs,
aller-retour export/import), web build + 844 vitest, lint sans erreur,
migration V27 appliquée sur une base existante et fiche PNJ enregistrée
puis signalée par la relecture dans le navigateur.
À redéployer : core + web (migration V27).
This commit is contained in:
2026-10-17 17:07:10 +02:00
parent 0c0581e894
commit 106754fd77
57 changed files with 1262 additions and 51 deletions
+135 -6
View File
@@ -517,7 +517,13 @@
"optionalHint": "Only the title is required. Expand and fill in only the sections you need — everything else is optional.",
"themesStakesSectionTitle": "Themes and stakes",
"gmNotesSectionTitle": "GM notes",
"rewardsResolutionSectionTitle": "Rewards and resolution"
"rewardsResolutionSectionTitle": "Rewards and resolution",
"truthHooksSectionTitle": "Hidden truth and hooks",
"hiddenTruthLabel": "Hidden truth (GM only)",
"hiddenTruthPlaceholder": "What really happened, which the players will uncover bit by bit",
"hooksLabel": "Hooks",
"hooksPlaceholder": "- A friend of the characters goes missing\n- A reward is offered for…",
"hooksHint": "One hook per line. Aim for at least two, of different kinds."
},
"arcView": {
"subtitleHub": "Hub arc (non-linear quests)",
@@ -549,7 +555,9 @@
"deleteConfirmMessage": "Delete the arc \"{{name}}\"?",
"questsTitle": "Quests in this arc",
"questsEmpty": "No quests yet. Add one to populate this hub.",
"createQuest": "New quest"
"createQuest": "New quest",
"hooksTitle": "Hooks",
"hiddenTruthTitle": "Hidden truth"
},
"campaigns": {
"heroTitle": "Your Campaigns",
@@ -1062,7 +1070,11 @@
"branchTargetBroken": "Destination not found (deleted scene): pick a new destination or remove this branch.",
"battlemapAdd": "Add a map",
"battlemapLabelPlaceholder": "Label (e.g.: Day, Night, Floor 1…)",
"battlemapRemoveMap": "Remove this map"
"battlemapRemoveMap": "Remove this map",
"purposeLabel": "Purpose of the scene",
"purposePlaceholder": "If it were cut, what would the story lose? (information, a choice, an emotion…)",
"tacticsLabel": "Enemy tactics and morale",
"tacticsPlaceholder": "How they fight, and when they flee, surrender or negotiate"
},
"sceneView": {
"subtitle": "Scene",
@@ -1092,7 +1104,9 @@
"deleteTitle": "Delete scene",
"deleteMessage": "Delete the scene \"{{name}}\"?",
"deleteIrreversible": "This action is irreversible.",
"deleteError": "Error while deleting the scene"
"deleteError": "Error while deleting the scene",
"purposeSectionTitle": "Purpose",
"tacticsSectionTitle": "Tactics and morale"
},
"characterEdit": {
"backToCampaign": "Back to campaign",
@@ -1139,7 +1153,23 @@
"chatSuggestion3": "Imagine 3 signature lines that characterize them",
"deleteTitle": "Delete this sheet?",
"deleteMessage": "Delete the sheet for \"{{name}}\"?",
"irreversible": "This action is irreversible."
"irreversible": "This action is irreversible.",
"storyTitle": "Role in the story",
"storyHint": "Independent of the game system: what makes this NPC playable and useful to the story.",
"roleLabel": "Role",
"roleNone": "Not set",
"role": {
"OPPONENT": "Opponent",
"ALLY": "Ally",
"RESOURCE": "Resource (informant, service)",
"EXTRA": "Extra"
},
"motivationLabel": "Motivation",
"motivationPlaceholder": "What they want, and what they're willing to do to get it",
"knowledgeLabel": "What they know (GM only)",
"knowledgePlaceholder": "The information they can reveal, and on what condition",
"mannerismLabel": "Distinctive trait",
"mannerismPlaceholder": "A gesture, a way of speaking, a tic to play at the table"
},
"npcList": {
"create": "New NPC",
@@ -1154,7 +1184,8 @@
"npcView": {
"aiAssistant": "AI Assistant",
"relatedPages": "Linked Lore pages",
"deletedPage": "(deleted page)"
"deletedPage": "(deleted page)",
"storyTitle": "Role in the story"
},
"enemyEdit": {
"backToEnemies": "Back to enemies",
@@ -1992,6 +2023,28 @@
],
"example": "Three smugglers aren't trying to kill anyone: they want to sink the boat holding the evidence. If they succeed, the fight is lost, even with every PC still standing.",
"pitfall": "The \"bag of hit points\" fight: with no goal other than taking the enemy down, it quickly becomes repetitive. Give each side a purpose."
},
"purpose": {
"title": "Purpose of the scene",
"purpose": "Every scene should bring something to the story. Knowing what you'd lose by cutting it helps decide what to keep, what to shorten, and what to improvise.",
"questions": [
"What do the players learn here that they won't learn anywhere else?",
"What decision do they make, or what emotion do they feel?",
"If time runs short, can it be summed up in two sentences?"
],
"example": "Without the inn, the players never meet Maëlis: they lose their only ally and the first lead to the tower.",
"pitfall": "A scene that only exists to look nice or fill a session: players feel it, and the pacing collapses."
},
"tactics": {
"title": "Enemy tactics and morale",
"purpose": "Enemies who want to survive make a fight come alive: they use the terrain, protect their leader and know when to run. The GM then knows how to play them without improvising at random.",
"questions": [
"How does the terrain favour them?",
"What makes them flee, surrender or negotiate?",
"Who do they protect, and what do they do if their leader falls?"
],
"example": "The smugglers shoot from the boats and cut the moorings if approached. If the sergeant falls, they drop their weapons and offer to talk.",
"pitfall": "Enemies who all fight to the death: the fight becomes plain hit point subtraction, with no choices for the players."
}
},
"chapter": {
@@ -2082,6 +2135,28 @@
],
"example": "The guild is publicly exposed; or the PCs buy it out themselves; or the villages are lost and the next arc opens with the exodus.",
"pitfall": "A single ending written in advance: the players' choices no longer matter. Prepare outcomes, not a script."
},
"hiddenTruth": {
"title": "Hidden truth",
"purpose": "The truth the players will piece together. Everything else follows from it: every clue, every revelation is a trace it left behind.",
"questions": [
"What really happened, and who is responsible?",
"What traces did it leave, and where?",
"Can the players fully understand it by the end?"
],
"example": "The regent poisoned the old king to rule in the prince's place. The court physician knows and keeps quiet out of fear.",
"pitfall": "A truth too complicated to discover in play. If a player can't sum it up in one sentence at the end, simplify it."
},
"hooks": {
"title": "Hooks",
"purpose": "The reasons that push the characters to get involved. Several hooks of different kinds let players choose their motivation instead of having it imposed.",
"questions": [
"Which one plays on interest (reward, contract)?",
"Which one affects a character personally?",
"Which one falls on them without them looking for it?"
],
"example": "- The council offers a reward to find the prince.\n- A character's sister worked at the palace and has vanished.\n- The regent's guards come to arrest the characters for no reason.",
"pitfall": "A single hook, presented as an obligation: if it doesn't speak to the table, the adventure starts reluctantly."
}
},
"publication": {
@@ -2140,6 +2215,50 @@
"example": "Writing: Camille Martin\nMaps: Léo Dubois\nEditing: Alex\nPlaytesters: the Thursday table (Inès, Yanis, Paul, Mira)",
"pitfall": "Forgetting the playtesters, or the credits required by an artwork's or a game system's licence."
}
},
"npc": {
"role": {
"title": "Role in the story",
"purpose": "Knowing what place an NPC holds tells you how much preparation they deserve: an opponent or an ally weighs on the plot, an extra only needs one detail.",
"questions": [
"Does this NPC help the characters, oppose them, or hold something they need?",
"Do they act on their own, or are they the prize others fight over?"
],
"example": "Borin the blacksmith is a resource: he knows who ordered the crypt keys, but will only tell someone who helps him.",
"pitfall": "Allies who do everything in the players' place. An ally has limits: what they can't or won't do."
},
"motivation": {
"title": "Motivation",
"purpose": "What the NPC wants decides everything they do. With a clear motivation, the GM knows how they react to anything the players do.",
"questions": [
"What do they want, right now?",
"What are they afraid to lose?",
"How far are they willing to go?"
],
"example": "Ysolde wants the throne for herself, but fears scandal above all: she'd rather bribe than kill.",
"pitfall": "A villain who is evil \"just because\": players can neither understand, manipulate nor convince them."
},
"knowledge": {
"title": "What they know",
"purpose": "Listing what the NPC can reveal avoids improvising contradictory answers and ties the NPC to the adventure's clues.",
"questions": [
"What useful information do they hold?",
"On what condition will they share it (trust, money, threat)?",
"What do they wrongly believe they know?"
],
"example": "He saw the notary leave the room at midnight. He'll say so in exchange for safe passage out of town.",
"pitfall": "An NPC who knows everything and tells the first person who asks: the investigation is solved in one conversation."
},
"mannerism": {
"title": "Distinctive trait",
"purpose": "One detail to play at the table makes an NPC memorable in seconds, and helps players recognise who is speaking.",
"questions": [
"What gesture or habit gives them away?",
"How do they speak: fast, slowly, with a pet word?"
],
"example": "Taps her ring every time she lies, and ends her sentences with \"don't you agree?\".",
"pitfall": "A long physical description nobody remembers: one strong detail beats a full portrait."
}
}
}
},
@@ -2233,6 +2352,16 @@
"observation": "The {{count}} paths leading to \"{{entity}}\" all start from \"{{kind}}\" scenes.",
"why": "If all the information goes through one kind of scene (only interrogations, only searches), a table that dislikes it or fails at it will miss every clue at once.",
"question": "Could a clue come from another kind of scene: a place to search, a document, an event?"
},
"WRITE-016-NPC-NO-MOTIVATION": {
"observation": "\"{{entity}}\" weighs on the plot, but their motivation isn't written.",
"why": "An opponent or ally who wants nothing specific is hard to play: the GM doesn't know how they react when the players upset their plans.",
"question": "What does this NPC want, and what are they afraid to lose?"
},
"WRITE-017-SINGLE-HOOK": {
"observation": "\"{{entity}}\" has only one hook.",
"why": "If that single reason doesn't speak to the players, the adventure starts reluctantly. Several hooks of different kinds let them choose why to get involved.",
"question": "What other reason, personal or self-interested, could push the characters to act?"
}
}
},