Show each score bonus as its own badge in the departure preview and on group cards
Bonus labels such as "Affinité · Rêves" and "Expertise · Fortune +8 %" were joined with the same dot that separates their parts, so two bonuses read as one. They now use the separate badges of the return report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fb951e4510
commit
9802db816e
2 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ export function ExpeditionGroupCard({ catalog, group, cards, content, now, busy,
|
|||
: <TierTile tier={projected.tier} scorePct={projected.scorePct} lootPct={group.tierLootPct?.[projected.tier]} content={content} />}
|
||||
{projected.players > 1 && <div><dt>{content.groupOutcomeGroupLoot}</dt><dd>{fillTemplate(content.lootBonus, { value: formatEclats(projected.lootPct / 100) })}</dd></div>}
|
||||
{(projected.powers || []).length > 0 && <div><dt>{content.groupOutcomePowers}</dt><dd className="nebula-group-powers">{projected.powers.map((power) => <PowerName key={power} power={power} content={content} stats={power === "attunement" ? (projected.attunement || []).map((item) => item.stat) : []} />)}</dd></div>}
|
||||
{bonuses.length > 0 && <div><dt>{content.groupOutcomeBonuses}</dt><dd>{bonuses.join(" · ")}</dd></div>}
|
||||
{bonuses.length > 0 && <div><dt>{content.groupOutcomeBonuses}</dt><dd>{bonuses.map((label) => <span key={label} className="nds-badge" data-variant="success">{label}</span>)}</dd></div>}
|
||||
</dl>
|
||||
<GroupRecap catalog={catalog} group={group} content={content} />
|
||||
{group.isMember && <InviteLink groupId={group.id} content={content} />}
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ function Preview({ catalog, preview, content, hours, tierLootPct }) {
|
|||
: <TierTile tier={preview.tier} scorePct={preview.scorePct} lootPct={tierLootPct?.[preview.tier]} content={content} />}
|
||||
<ExpectedLootTile expected={preview.expected} content={content} />
|
||||
{(preview.powers || []).length > 0 && <div><dt>{content.groupOutcomePowers}</dt><dd className="nebula-group-powers">{preview.powers.map((power) => <PowerName key={power} power={power} content={content} stats={power === "attunement" ? (preview.attunement || []).map((item) => item.stat) : []} />)}</dd></div>}
|
||||
{bonuses.length > 0 && <div><dt>{content.groupOutcomeBonuses}</dt><dd>{bonuses.join(" · ")}</dd></div>}
|
||||
{bonuses.length > 0 && <div><dt>{content.groupOutcomeBonuses}</dt><dd>{bonuses.map((label) => <span key={label} className="nds-badge" data-variant="success">{label}</span>)}</dd></div>}
|
||||
</dl>
|
||||
{!preview.hiddenRequirements && preview.limitedByStars && <p className="nds-inline-notice" data-variant="warning">{fillTemplate(content.limitedByStarsHelp, { stars: preview.limitedByStars })}</p>}
|
||||
{!preview.hiddenRequirements && preview.durationFactor < 1 && <p className="nds-inline-notice" data-variant="warning">{content.durationMalus}</p>}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue