Freeze pack rates in a campaign when it is created
A gifted pack using the pack's own rates was drawn with whatever rates were in force when the player opened it. Campaigns now copy those rates at creation (packRates), every pack of the code draws with them, and the reveal shows them. Older campaigns keep following the live rates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
26984bb6c0
commit
fd47514d81
6 changed files with 57 additions and 7 deletions
|
|
@ -115,7 +115,7 @@ function RedeemCode({ catalog, runMutation, busy, content }) {
|
|||
|
||||
function OpeningOdds({ catalog, opening, collection, content, shopShare }) {
|
||||
// Un paquet offert peut avoir ses propres taux et une garantie : ce sont eux qui s'appliquent à ce tirage.
|
||||
const weights = opening.options?.rarityWeights || collection?.dropWeights;
|
||||
const weights = opening.options?.rarityWeights || opening.options?.packRates || collection?.dropWeights;
|
||||
const details = packDetails(opening.options, catalog);
|
||||
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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue