Remove the Grimoire, which only listed discoveries and had no effect on the game
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ebd8580738
commit
477ce5a141
14 changed files with 24 additions and 70 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// Rôle : présente les Expéditions, quête de la Guilde, en deux onglets. « Préparer » suit le parcours du joueur : la carte de
|
||||
// destination offerte à sa première visite, puis son expédition (à récupérer, en route, ou ouverte au groupe) ou, s'il n'en a pas,
|
||||
// les expéditions à rejoindre et la préparation. « Journal » garde les expéditions terminées, leur butin et le Grimoire.
|
||||
// les expéditions à rejoindre et la préparation. « Journal » garde les expéditions terminées et leur butin.
|
||||
import { useEffect, useState } from "react";
|
||||
import { Modal } from "../../components/Modal.jsx";
|
||||
import { Tabs } from "../../components/Tabs.jsx";
|
||||
|
|
@ -12,7 +12,7 @@ import { ExpeditionJourney } from "./ExpeditionJourney.jsx";
|
|||
import { ExpeditionPlanner } from "./ExpeditionPlanner.jsx";
|
||||
import { ExpeditionReport } from "./ExpeditionReport.jsx";
|
||||
import { ExpeditionStarter } from "./ExpeditionStarter.jsx";
|
||||
import { formatEclats, grimoireLabel } from "./expeditionFormat.js";
|
||||
import { formatEclats } from "./expeditionFormat.js";
|
||||
|
||||
const COUNTDOWN_TICK_MS = 30_000;
|
||||
|
||||
|
|
@ -170,11 +170,6 @@ export function ExpeditionsPanel({ catalog, state, runMutation, busy, content, j
|
|||
{journalCount ? <div className="nebula-expedition-reports">{view.journal.map((expedition) => <ExpeditionReport key={expedition.id} catalog={catalog} expedition={expedition} content={content} now={now} busy={busy} onClaim={claim} />)}</div>
|
||||
: <p className="nebula-form-help">{content.journalEmpty}</p>}
|
||||
</section>
|
||||
<section className="nds-panel nebula-expedition-grimoire" aria-labelledby="nebula-expedition-grimoire-title">
|
||||
<h3 id="nebula-expedition-grimoire-title">{content.grimoireTitle} <span className="nds-badge" data-variant="neutral">{fillTemplate(content.grimoireCount, { count: view.grimoire.length, s: view.grimoire.length > 1 ? "s" : "" })}</span></h3>
|
||||
<p className="nebula-form-help">{content.grimoireHelp}</p>
|
||||
{view.grimoire.length ? <ul className="nebula-expedition-rewards">{view.grimoire.map((entry) => <li key={entry.id} className="nds-badge" data-variant="gold">{grimoireLabel(entry.id, catalog, content)}</li>)}</ul> : <p className="nebula-form-help">{content.grimoireEmpty}</p>}
|
||||
</section>
|
||||
</>;
|
||||
|
||||
return <section className="nebula-expeditions" aria-labelledby="nebula-expeditions-title">
|
||||
|
|
|
|||
|
|
@ -88,14 +88,6 @@ export function synergyLabels(result, catalog, content) {
|
|||
return labels;
|
||||
}
|
||||
|
||||
// Une découverte du Grimoire : « pair:<étiquette> » ou « resonance:<sorte>:<étiquette> ».
|
||||
export function grimoireLabel(entryId, catalog, content) {
|
||||
const [kind, ...rest] = entryId.split(":");
|
||||
if (kind === "pair") return fillTemplate(content.grimoirePair, { tag: tagLabel(catalog, rest.join(":")) });
|
||||
const [type, ...tag] = rest;
|
||||
return fillTemplate(content.resonance, { type: content.resonanceTypes[type] || type, tag: tagLabel(catalog, tag.join(":")) });
|
||||
}
|
||||
|
||||
// Vocation d'une carte (son plan de progression) : la stat que ses points de niveau privilégient.
|
||||
export const STAT_BY_PLAN = { leader: "bravoure", guardian: "endurance", seeker: "fortune", navigator: "orientation" };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue