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" };
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@
|
|||
.nebula-card-progress h3 { font-size: var(--font-size-base); }
|
||||
.nebula-card-progress p { font-size: var(--font-size-sm); }
|
||||
|
||||
// Équipements dans la fiche de carte et Grimoire des Expéditions.
|
||||
// Équipements dans la fiche de carte.
|
||||
// Plan de progression : choix du plan, points libres et aperçu des stats (flèche verte ou rouge selon l'écart).
|
||||
.nebula-card-plan { display: grid; gap: var(--space-2); }
|
||||
.nebula-card-plan h4 { margin: 0; font-size: var(--font-size-sm); }
|
||||
|
|
@ -277,10 +277,6 @@
|
|||
.nebula-card-equipment .nds-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--font-size-sm); }
|
||||
.nebula-card-equipment .nds-list-row > span { display: inline-flex; flex: 1 1 200px; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
|
||||
.nebula-card-equipment .nds-list-row[data-locked] { color: var(--color-text-muted); border-style: dashed; }
|
||||
.nds-panel.nebula-expedition-grimoire { display: grid; gap: var(--space-2); padding: var(--space-4); }
|
||||
.nebula-expedition-grimoire h3 { display: flex; align-items: center; gap: var(--space-2); }
|
||||
.nebula-expedition-grimoire ul { margin: 0; padding: 0; list-style: none; }
|
||||
.nebula-expedition-grimoire p { margin: 0; }
|
||||
.nebula-card-equipment .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|
||||
|
||||
// Alertes Discord dans la page Compte.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue