Hide unrevealed Cards pulls and show the odds players really get
Keep a pending opening's cards out of the home highlight and collection until they are revealed, and refuse transfers meanwhile. Odds now ignore rarities a pack cannot give. Stable files gain an ETag so card images revalidate instead of downloading again, and logging out clears the local collection copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b2e46b1d2a
commit
155187d01f
11 changed files with 167 additions and 26 deletions
|
|
@ -106,7 +106,7 @@ function OpeningOdds({ catalog, opening, collection, content, shopShare }) {
|
|||
if (collection?.packCategory === "shop") details.push(`${shopShare} % ${content.shopShare} ${collection.name}`);
|
||||
return <section className="nds-panel nebula-opening-odds" aria-labelledby="nebula-opening-odds-title">
|
||||
<h3 id="nebula-opening-odds-title">{content.probabilities}</h3>
|
||||
<ul className="nebula-shop-rates" aria-labelledby="nebula-opening-odds-title">{rarityPercentages(catalog.rarities, weights).map(({ rarity, percent }) => <li key={rarity.id} data-rarity={rarity.id}><span>{rarity.label}</span><strong>{formatPercent(percent)}</strong></li>)}</ul>
|
||||
<ul className="nebula-shop-rates" aria-labelledby="nebula-opening-odds-title">{rarityPercentages(catalog.rarities, weights, collection?.drawableRarities).map(({ rarity, percent }) => <li key={rarity.id} data-rarity={rarity.id}><span>{rarity.label}</span><strong>{formatPercent(percent)}</strong></li>)}</ul>
|
||||
{details.length > 0 && <p className="nebula-form-help">{details.join(" · ")}</p>}
|
||||
</section>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue