Let players choose how their cards spend level points with vocations or free points, and sell the Parchemin d'oubli
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
18bcf435b5
commit
7d331d1a3f
24 changed files with 473 additions and 60 deletions
|
|
@ -11,6 +11,8 @@ import { NebulaCard } from "./NebulaCard.jsx";
|
|||
const PREVIEW_DELAY_MS = 250;
|
||||
const TIER_VARIANTS = { struggle: "neutral", success: "success", triumph: "gold" };
|
||||
const LOOT_KINDS = ["eclats", "stardust", "cards", "items"];
|
||||
// Vocation d'une carte (son plan de progression) : icône de la stat de son rôle à côté de sa Puissance.
|
||||
const STAT_BY_PLAN = { leader: "bravoure", guardian: "endurance", seeker: "fortune", navigator: "orientation" };
|
||||
|
||||
// Effet de la spécialité sur le butin : flèche verte sur ce qui augmente, rouge sur ce qui baisse.
|
||||
function LootEffects({ specialty, pct, content }) {
|
||||
|
|
@ -185,7 +187,7 @@ export function ExpeditionPlanner({ catalog, view, mode = "solo", content, busy,
|
|||
const selected = slots.includes(card.editionId);
|
||||
return <li key={card.editionId} data-busy={card.busy || undefined}>
|
||||
<NebulaCard catalog={catalog} entry={entry} size="sm" selected={selected} disabled={card.busy} onSelect={card.busy ? undefined : () => choose(card)} selectLabel={fillTemplate(content.chooseCard, { card: entry.card.name, role: content.roles[roleStat] })} />
|
||||
<span className="nebula-expedition-card-power">{card.busy ? content.busy : fillTemplate(content.power, { power: card.power })}</span>
|
||||
<span className="nebula-expedition-card-power">{STAT_BY_PLAN[card.plan] && <MaskIcon name={STAT_BY_PLAN[card.plan]} />}{card.busy ? content.busy : fillTemplate(content.power, { power: card.power })}</span>
|
||||
<StatLine stats={card.stats} content={content} />
|
||||
</li>;
|
||||
})}</ul> : <p className="nds-inline-notice" data-variant="info">{fillTemplate(content.noCards, { count: slotCount })}</p>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue