Recycle duplicates in bulk up to a chosen rarity, never mythics
The collection page asks how far the bulk recycling goes (Common by default) and its preview follows that choice, so duplicates kept for later uses are not lost with the rest. Mythic duplicates are only recycled one by one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
79fdf2a9a8
commit
c7f951920e
10 changed files with 63 additions and 29 deletions
|
|
@ -407,3 +407,4 @@
|
|||
{"id":"int-5cc307ab11e34c1d5358129db42abac5","kind":"field_change","created_at":"2026-11-18T21:59:23.707980784Z","actor":"Shinuwa","issue_id":"sokko-g-v3u4.11.7","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Secondes stats : Meneur Endurance/Orientation, Gardien Bravoure/Fortune, Chercheur Orientation/Bravoure, Navigateur Fortune/Endurance : chaque stat est seconde pour deux vocations."}}
|
||||
{"id":"int-3bac57b7a54f2fc7a7ac08fbf14c4812","kind":"field_change","created_at":"2026-11-18T22:03:19.519910996Z","actor":"Shinuwa","issue_id":"sokko-g-v3u4.11.10","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Simulateur : buildCommons, l'Adaptation est proposée aux builds réfléchis (un pouvoir par carte). Navigateur : npm run test:e2e:cards, 13 tests réussis dans Chromium, dont le parcours d'expédition (ouverture, départ seul, retour, butin). Les badges d'Expertise, de plafond et d'Adaptation n'apparaissent pas dans ce parcours : vérifiés par les tests unitaires de formatage et de résultat seulement."}}
|
||||
{"id":"int-07cd400f0cb4cb4c9ebb49cee31d918a","kind":"field_change","created_at":"2026-11-18T22:03:35.478675891Z","actor":"Shinuwa","issue_id":"sokko-g-v3u4.11","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Tous les points de l'audit Codex traités sur la branche expeditions-specialists (5a9cc42, 2718b3b), avant le push."}}
|
||||
{"id":"int-934dcb125b5e2876de4bd6e6bdae8d70","kind":"field_change","created_at":"2026-11-19T08:26:05.011120749Z","actor":"Shinuwa","issue_id":"sokko-g-984j","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Recyclage en masse jusqu'à une rareté (Commune par défaut), mythiques exclues, aperçu par rareté"}}
|
||||
|
|
|
|||
|
|
@ -484,7 +484,8 @@ export function createCardsApiHandler({
|
|||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/recycle") {
|
||||
json(res, 200, service.recycleDuplicates(session.player.id, { editionId: (await readBody(req)).editionId ?? null }));
|
||||
const body = await readBody(req);
|
||||
json(res, 200, service.recycleDuplicates(session.player.id, { editionId: body.editionId ?? null, maxRarity: body.maxRarity ?? "legendary" }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/shop/pack") {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Rôle : applique les règles serveur de propriété, paquets, transferts et distributions Sokko TCG.
|
||||
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
||||
import { normalizeReward } from "./rewards.js";
|
||||
import { planRecycling, spareQuantity, validateShopSetting } from "./stardust.js";
|
||||
import { MASS_RECYCLE_RARITIES, planRecycling, spareQuantity, validateShopSetting } from "./stardust.js";
|
||||
import { FULL_ART_FORMAT, buildPublishedCatalog, collectionDrawableEditions, createCatalogIndex, holographicFinishIds, legendaryParentEdition, MATCH_HOLO_PALETTE_ID, mythicEditionId, publicCatalog, validateRarityWeights } from "./catalog.js";
|
||||
import { computeStreak, DAILY_REPEAT_WINDOW_DAYS, dailyCandidates, dailyDayKey, dailyZoom, drawDailyPuzzle, guessHint, isDayKey, MAX_DAILY_GUESSES, nextDailyAt, shiftDayKey } from "./daily.js";
|
||||
import { calculateRecharge, pinnedRecharge, drawPack, drawShopPack, MAX_RECHARGE_INTERVAL_MS, MIN_RECHARGE_INTERVAL_MS, spendOpening } from "./game-rules.js";
|
||||
|
|
@ -517,7 +517,7 @@ export class CardsService {
|
|||
equipment: this.expeditions.equipmentChoices(playerId),
|
||||
alerts: this.expeditions.alertPreferences(playerId),
|
||||
items: this.expeditions.itemsOf(playerId),
|
||||
recycling: { count: recycling.count, stardust: recycling.stardust },
|
||||
recycling: { count: recycling.count, stardust: recycling.stardust, byRarity: recycling.byRarity },
|
||||
pendingOpening: pending ? this.openingById(pending.id, playerId) : null,
|
||||
rarestPull: this.rarestPull(playerId), stats: { openingsCount },
|
||||
history, transfers: transferRows.map((row) => this.transferView(row, playerId)), giftPacks
|
||||
|
|
@ -657,22 +657,24 @@ export class CardsService {
|
|||
});
|
||||
}
|
||||
|
||||
recyclingPlan(collection, editionId = null) {
|
||||
return planRecycling(collection, { editionId, rarityOf: (id) => this.index.editions.get(id)?.rarity, stardustValues: this.shopSetting.stardustValues });
|
||||
recyclingPlan(collection, editionId = null, maxRarity = "legendary") {
|
||||
return planRecycling(collection, { editionId, maxRarity, rarityOf: (id) => this.index.editions.get(id)?.rarity, stardustValues: this.shopSetting.stardustValues });
|
||||
}
|
||||
|
||||
// Recycle tous les doublons disponibles, ou un seul doublon de `editionId` ; un exemplaire de chaque carte reste toujours.
|
||||
recycleDuplicates(playerId, { editionId = null } = {}) {
|
||||
// Recycle en masse les doublons disponibles, des communes jusqu'à `maxRarity` (sans les mythiques), ou un seul doublon de
|
||||
// `editionId` ; un exemplaire de chaque carte reste toujours.
|
||||
recycleDuplicates(playerId, { editionId = null, maxRarity = "legendary" } = {}) {
|
||||
if (editionId != null && !this.index.editions.has(editionId)) fail(404, "EDITION_NOT_FOUND", "Édition introuvable.");
|
||||
if (!MASS_RECYCLE_RARITIES.includes(maxRarity)) fail(400, "RARITY_INVALID", "Rareté maximale invalide.");
|
||||
let plan;
|
||||
this.database.transaction(() => {
|
||||
this.expireTransfers();
|
||||
if (this.db.prepare("SELECT 1 FROM openings WHERE player_id = ? AND status = 'pending'").get(playerId)) fail(409, "PENDING_OPENING", "Terminez d'abord l'ouverture en cours.");
|
||||
plan = this.recyclingPlan(this.collectionOf(playerId), editionId);
|
||||
plan = this.recyclingPlan(this.collectionOf(playerId), editionId, maxRarity);
|
||||
if (!plan.count) fail(409, "NO_DUPLICATE", editionId ? "Aucun doublon disponible pour cette carte." : "Aucun doublon à recycler.");
|
||||
for (const item of plan.items) this.removeDuplicates(playerId, item.editionId, item.count);
|
||||
this.db.prepare("UPDATE players SET stardust = stardust + ? WHERE id = ?").run(plan.stardust, playerId);
|
||||
this.audit(playerId, "cards_recycled", editionId || "duplicates", { count: plan.count, stardust: plan.stardust, editions: plan.items.map((item) => item.editionId) });
|
||||
this.audit(playerId, "cards_recycled", editionId || "duplicates", { count: plan.count, stardust: plan.stardust, editions: plan.items.map((item) => item.editionId), ...(editionId ? {} : { maxRarity }) });
|
||||
});
|
||||
return { recycled: { count: plan.count, stardust: plan.stardust }, state: this.getState(playerId) };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,17 +8,27 @@ export const MAX_OPENING_PRICE = 100_000;
|
|||
// transfert en cours. Seuls ces doublons s'échangent, se donnent ou se recyclent.
|
||||
export const spareQuantity = ({ quantity, reserved = 0 }) => Math.max(0, quantity - 1 - reserved);
|
||||
|
||||
// Raretés qu'un recyclage en masse peut prendre, de la plus commune à la plus rare. Les doublons de mythiques ne se recyclent
|
||||
// qu'un par un : trop rares pour partir avec le reste.
|
||||
export const MASS_RECYCLE_RARITIES = Object.freeze(["common", "rare", "epic", "legendary"]);
|
||||
|
||||
// `collection` : [{ editionId, quantity, reserved }] ; `rarityOf(editionId)` renvoie la rareté de la carte.
|
||||
// Sans `editionId`, prépare le recyclage de tous les doublons disponibles ; avec, d'un seul doublon de cette carte.
|
||||
export function planRecycling(collection, { rarityOf, stardustValues, editionId = null }) {
|
||||
// Sans `editionId`, prépare le recyclage en masse des doublons disponibles, des communes jusqu'à `maxRarity` comprise ;
|
||||
// avec, d'un seul doublon de cette carte. `byRarity` détaille le recyclage en masse par rareté, pour l'aperçu.
|
||||
export function planRecycling(collection, { rarityOf, stardustValues, editionId = null, maxRarity = "legendary" }) {
|
||||
const allowed = new Set(MASS_RECYCLE_RARITIES.slice(0, MASS_RECYCLE_RARITIES.indexOf(maxRarity) + 1));
|
||||
const items = collection
|
||||
.filter((entry) => !editionId || entry.editionId === editionId)
|
||||
.filter((entry) => editionId ? entry.editionId === editionId : allowed.has(rarityOf(entry.editionId)))
|
||||
.map((entry) => {
|
||||
const count = editionId ? Math.min(1, spareQuantity(entry)) : spareQuantity(entry);
|
||||
return { editionId: entry.editionId, count, stardust: count * (stardustValues[rarityOf(entry.editionId)] ?? 0) };
|
||||
return { editionId: entry.editionId, rarity: rarityOf(entry.editionId), count, stardust: count * (stardustValues[rarityOf(entry.editionId)] ?? 0) };
|
||||
})
|
||||
.filter((item) => item.count > 0);
|
||||
return { items, count: items.reduce((total, item) => total + item.count, 0), stardust: items.reduce((total, item) => total + item.stardust, 0) };
|
||||
const byRarity = Object.fromEntries(MASS_RECYCLE_RARITIES.map((rarity) => {
|
||||
const ofRarity = items.filter((item) => item.rarity === rarity);
|
||||
return [rarity, { count: ofRarity.reduce((total, item) => total + item.count, 0), stardust: ofRarity.reduce((total, item) => total + item.stardust, 0) }];
|
||||
}));
|
||||
return { items, count: items.reduce((total, item) => total + item.count, 0), stardust: items.reduce((total, item) => total + item.stardust, 0), byRarity };
|
||||
}
|
||||
|
||||
export function validateShopSetting({ stardustValues, openingPrice, shopPackPrice, shopPackShare, dailyReward } = {}, rarityIds) {
|
||||
|
|
|
|||
|
|
@ -206,6 +206,7 @@ export function validateSiteContent(site) {
|
|||
"cards.recycling.viewDuplicates",
|
||||
"cards.recycling.viewAll",
|
||||
"cards.recycling.allButton",
|
||||
"cards.recycling.maxRarityLabel",
|
||||
"cards.recycling.ratesLabel",
|
||||
"cards.recycling.pending",
|
||||
"cards.recycling.pendingAction",
|
||||
|
|
|
|||
|
|
@ -469,16 +469,23 @@ test("admin dashboard aggregates current player activity without Discord identif
|
|||
});
|
||||
|
||||
test("recycling plan only takes duplicates that are not reserved by a transfer", () => {
|
||||
const options = { rarityOf: (id) => (id.startsWith("rare") ? "rare" : "common"), stardustValues: { common: 1, rare: 3 } };
|
||||
const options = { rarityOf: (id) => id.split("-")[0], stardustValues: { common: 1, rare: 3, epic: 10, mythic: 150 } };
|
||||
const collection = [
|
||||
{ editionId: "common-a", quantity: 3, reserved: 0 },
|
||||
{ editionId: "rare-b", quantity: 3, reserved: 1 },
|
||||
{ editionId: "common-single", quantity: 1, reserved: 0 }
|
||||
{ editionId: "common-single", quantity: 1, reserved: 0 },
|
||||
{ editionId: "epic-c", quantity: 2, reserved: 0 },
|
||||
{ editionId: "mythic-d", quantity: 2, reserved: 0 }
|
||||
];
|
||||
const all = planRecycling(collection, options);
|
||||
assert.deepEqual(all.items, [{ editionId: "common-a", count: 2, stardust: 2 }, { editionId: "rare-b", count: 1, stardust: 3 }]);
|
||||
assert.deepEqual([all.count, all.stardust], [3, 5]);
|
||||
assert.deepEqual(planRecycling(collection, { ...options, editionId: "common-a" }).items, [{ editionId: "common-a", count: 1, stardust: 1 }]);
|
||||
assert.deepEqual(all.items, [{ editionId: "common-a", rarity: "common", count: 2, stardust: 2 }, { editionId: "rare-b", rarity: "rare", count: 1, stardust: 3 }, { editionId: "epic-c", rarity: "epic", count: 1, stardust: 10 }]);
|
||||
assert.deepEqual([all.count, all.stardust], [4, 15]);
|
||||
assert.deepEqual(all.byRarity, { common: { count: 2, stardust: 2 }, rare: { count: 1, stardust: 3 }, epic: { count: 1, stardust: 10 }, legendary: { count: 0, stardust: 0 } });
|
||||
// En masse, jusqu'à une rareté : les plus rares restent, et une mythique ne part jamais avec le reste.
|
||||
assert.deepEqual(planRecycling(collection, { ...options, maxRarity: "common" }).items.map((item) => item.editionId), ["common-a"]);
|
||||
assert.deepEqual(planRecycling(collection, { ...options, maxRarity: "rare" }).items.map((item) => item.editionId), ["common-a", "rare-b"]);
|
||||
assert.deepEqual(planRecycling(collection, { ...options, editionId: "common-a" }).items, [{ editionId: "common-a", rarity: "common", count: 1, stardust: 1 }]);
|
||||
assert.deepEqual(planRecycling(collection, { ...options, editionId: "mythic-d" }).items, [{ editionId: "mythic-d", rarity: "mythic", count: 1, stardust: 150 }]);
|
||||
assert.equal(planRecycling(collection, { ...options, editionId: "common-single" }).count, 0);
|
||||
});
|
||||
|
||||
|
|
@ -498,7 +505,7 @@ test("duplicates become stardust that buys openings kept apart from the recharge
|
|||
const before = service.getState(player.id);
|
||||
assert.deepEqual(before.wallet, { stardust: 0, purchasedOpenings: 0, eclats: 0 });
|
||||
assert.deepEqual(before.shop, { stardustValues: INITIAL_SHOP_SETTING.stardustValues, openingPrice: INITIAL_SHOP_SETTING.openingPrice, shopPackPrice: 60, shopPackShare: 50, dailyReward: 10, stardustPerEclat: 3, oblivionPrice: 150, windRosePrice: 60 });
|
||||
assert.deepEqual(before.recycling, { count: 2, stardust: 2 * value });
|
||||
assert.deepEqual([before.recycling.count, before.recycling.stardust, before.recycling.byRarity[rarity]], [2, 2 * value, { count: 2, stardust: 2 * value }]);
|
||||
// Une favorite garde son exemplaire : ses doublons se recyclent comme les autres.
|
||||
service.setFavorite(player.id, editionId, true);
|
||||
|
||||
|
|
@ -510,6 +517,7 @@ test("duplicates become stardust that buys openings kept apart from the recharge
|
|||
assert.equal(all.state.collection[0].quantity, 1);
|
||||
assert.equal(all.state.wallet.stardust, 2 * value);
|
||||
assert.throws(() => service.recycleDuplicates(player.id), /Aucun doublon/);
|
||||
assert.throws(() => service.recycleDuplicates(player.id, { maxRarity: "mythic" }), /Rareté maximale invalide/);
|
||||
// L'ouverture garde sa référence à la carte tirée et reste lisible après le recyclage.
|
||||
const history = service.openingById(opened.opening.id, player.id);
|
||||
assert.deepEqual(history.cards.map((card) => card.card?.name), opened.opening.cards.map((card) => card.card.name));
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@
|
|||
"barLabel": "Recyclage des doublons",
|
||||
"viewDuplicates": "Voir les doublons",
|
||||
"viewAll": "Voir toutes les cartes",
|
||||
"allButton": "Tout recycler",
|
||||
"allButton": "Recycler",
|
||||
"maxRarityLabel": "Jusqu’à la rareté",
|
||||
"ratesLabel": "Poussière gagnée par doublon",
|
||||
"pending": "Terminez d’abord l’ouverture en cours pour recycler vos doublons.",
|
||||
"pendingAction": "Reprendre l’ouverture"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// Rôle : affiche l'album, ses progressions, ses filtres, le recyclage des doublons et le détail des éditions.
|
||||
import { useMemo, useState } from "react";
|
||||
import { Icon } from "../../components/Icon.jsx";
|
||||
import { SelectDropdown } from "../../components/SelectDropdown.jsx";
|
||||
import { Tooltip } from "../../components/Tooltip.jsx";
|
||||
import { ActiveFilterBadges } from "../games/ActiveFilterBadges.jsx";
|
||||
import { ConfirmModal } from "../../components/ToolboxModals.jsx";
|
||||
|
|
@ -24,6 +25,8 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
const [selected, setSelected] = useState(null);
|
||||
const [confirmingRecycle, setConfirmingRecycle] = useState(false);
|
||||
const [recycleNotice, setRecycleNotice] = useState("");
|
||||
// Rareté maximale du recyclage en masse : les communes seules par défaut, pour ne pas jeter les doublons utiles à un Éveil.
|
||||
const [maxRarity, setMaxRarity] = useState("common");
|
||||
const owned = useMemo(() => readCollection(state), [state]);
|
||||
const { quantities } = owned;
|
||||
const cards = useMemo(() => new Map(catalog.cards.map((card) => [card.id, card])), [catalog.cards]);
|
||||
|
|
@ -54,7 +57,7 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
|
||||
async function recycleAll() {
|
||||
setRecycleNotice("");
|
||||
const result = await runMutation(() => recycleDuplicates());
|
||||
const result = await runMutation(() => recycleDuplicates(null, maxRarity));
|
||||
if (!result?.recycled) return;
|
||||
setRecycleNotice(`${result.recycled.count > 1 ? `${result.recycled.count} doublons recyclés` : "1 doublon recyclé"} : +${formatStardust(result.recycled.stardust)} d’étoiles.`);
|
||||
// Il ne reste plus de doublon à montrer : on revient à toute la collection.
|
||||
|
|
@ -62,6 +65,11 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
}
|
||||
|
||||
const { recycling, wallet, shop } = state;
|
||||
// Raretés recyclables en masse (sans les mythiques), dans l'ordre du catalogue, avec l'aperçu de chacune envoyé par le serveur.
|
||||
const massRarities = catalog.rarities.filter((rarity) => Object.hasOwn(recycling.byRarity ?? {}, rarity.id));
|
||||
const chosen = massRarities.slice(0, massRarities.findIndex((rarity) => rarity.id === maxRarity) + 1).map((rarity) => recycling.byRarity[rarity.id]);
|
||||
const preview = { count: chosen.reduce((total, item) => total + item.count, 0), stardust: chosen.reduce((total, item) => total + item.stardust, 0) };
|
||||
const maxRarityLabel = massRarities.find((rarity) => rarity.id === maxRarity)?.label ?? maxRarity;
|
||||
const showingDuplicates = ownership.includes("duplicates");
|
||||
const collectionOptions = collections.map((item) => ({ value: item.id, label: item.name }));
|
||||
const rarityOptions = catalog.rarities.map((item) => ({ value: item.id, label: item.label }));
|
||||
|
|
@ -77,9 +85,10 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
{recycling.count > 0 && <DashboardAside>
|
||||
<section className="nds-panel nebula-recycle-box" aria-label={content.barLabel}>
|
||||
<StardustBalance value={wallet.stardust} />
|
||||
<p><strong>{countDuplicates(recycling.count)}</strong> à recycler pour <strong>+{formatStardust(recycling.stardust)}</strong></p>
|
||||
<SelectDropdown className="nebula-recycle-box-rarity" label={content.maxRarityLabel} size="sm" value={maxRarity} options={massRarities.map((rarity) => ({ value: rarity.id, label: rarity.label }))} onChange={setMaxRarity} />
|
||||
<p><strong>{countDuplicates(preview.count)}</strong> à recycler pour <strong>+{formatStardust(preview.stardust)}</strong></p>
|
||||
<div className="nebula-recycle-box-actions">
|
||||
<button className="nds-button" data-size="sm" data-variant="primary" type="button" disabled={busy || Boolean(state.pendingOpening)} onClick={() => setConfirmingRecycle(true)}>{content.allButton}</button>
|
||||
<button className="nds-button" data-size="sm" data-variant="primary" type="button" disabled={busy || Boolean(state.pendingOpening) || !preview.count} onClick={() => setConfirmingRecycle(true)}>{content.allButton}</button>
|
||||
<button className="nds-button" data-size="sm" data-variant="secondary" type="button" onClick={() => setOwnership(showingDuplicates ? [] : ["duplicates"])}>{showingDuplicates ? content.viewAll : content.viewDuplicates}</button>
|
||||
</div>
|
||||
{state.pendingOpening && <p className="nebula-form-help">{content.pending} <a href="#/cards/packs">{content.pendingAction}</a></p>}
|
||||
|
|
@ -119,8 +128,8 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
})}</div> : <div className="nds-empty-state"><p>Aucune édition ne correspond à ces filtres.</p></div>}
|
||||
</section>
|
||||
{confirmingRecycle && <ConfirmModal
|
||||
title={`Recycler ${countDuplicates(recycling.count)} ?`}
|
||||
message={`Vous recevrez ${formatStardust(recycling.stardust)} d’étoiles. Les exemplaires recyclés disparaissent de votre collection ; un exemplaire de chaque carte est conservé et les doublons réservés par un échange ne sont pas recyclés.`}
|
||||
title={`Recycler ${countDuplicates(preview.count)} ?`}
|
||||
message={`Vous recevrez ${formatStardust(preview.stardust)} d’étoiles pour les doublons de rareté ${maxRarityLabel} ou plus commune. Les exemplaires recyclés disparaissent de votre collection ; un exemplaire de chaque carte est conservé, les doublons réservés par un échange ne sont pas recyclés et les mythiques se recyclent une par une.`}
|
||||
confirmLabel="Recycler"
|
||||
onClose={(confirmed) => { setConfirmingRecycle(false); if (confirmed) void recycleAll(); }}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -65,9 +65,9 @@ export function openPack(collectionId, { purchased = false } = {}) {
|
|||
return request("/openings", { method: "POST", headers: { "Idempotency-Key": requestKey }, body: JSON.stringify({ collectionId, purchased }) });
|
||||
}
|
||||
|
||||
// Sans `editionId`, recycle tous les doublons ; avec, un seul exemplaire de cette variation.
|
||||
export function recycleDuplicates(editionId = null) {
|
||||
return request("/recycle", { method: "POST", body: JSON.stringify({ editionId }) });
|
||||
// Sans `editionId`, recycle en masse les doublons des communes jusqu'à `maxRarity` ; avec, un seul exemplaire de cette variation.
|
||||
export function recycleDuplicates(editionId = null, maxRarity = "legendary") {
|
||||
return request("/recycle", { method: "POST", body: JSON.stringify(editionId ? { editionId } : { maxRarity }) });
|
||||
}
|
||||
|
||||
export function buyShopPack() {
|
||||
|
|
|
|||
|
|
@ -1069,6 +1069,7 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
|
|||
.nebula-shop-buy .nebula-stardust { color: inherit; font-size: inherit; }
|
||||
.nds-panel.nebula-recycle-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); }
|
||||
.nebula-recycle-box p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-recycle-box .nebula-recycle-box-rarity { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); white-space: nowrap; }
|
||||
.nebula-recycle-box .nebula-stardust { font-size: var(--font-size-xl); }
|
||||
.nebula-recycle-box-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
|
||||
/* En colonne, sous le menu : les encarts s'empilent ; en demi-écran, ils restent des bandeaux sous le menu horizontal. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue