Advise players to level with Éclats and keep duplicates for awakenings
Duplicates now matter for awakening tiers, so the upgrade section of a card sheet says so while a tier lies ahead: level up with Éclats and experience, keep duplicates for awakenings. The bulk recycling box reminds that rare, epic and legendary duplicates also awaken cards once the player goes past commons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
83ac709907
commit
d863964a5d
5 changed files with 9 additions and 3 deletions
|
|
@ -2060,7 +2060,8 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true }).getByRole("button", { name: /^Améliorer · 70 Éclats$/ })).toBeVisible();
|
||||
await expect(sheet.getByRole("heading", { name: "Équipements", exact: true })).toHaveCount(0);
|
||||
// Une légendaire franchit ses paliers d'Éveil à 85 puis 100 : l'amélioration annonce le prochain.
|
||||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toContainText("Prochain palier d’Éveil : Puissance\u00a085.");
|
||||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toContainText("Prochain palier d’Éveil : Puissance\u00a085. Il ne se franchit qu’avec des doublons : montez les niveaux avec les Éclats et l’expérience, et gardez vos doublons pour les Éveils.");
|
||||
await sheet.getByRole("region", { name: "Améliorer", exact: true }).screenshot({ path: join(tmpdir(), "sokkog-cards-upgrade-tip.png") });
|
||||
await partner.keyboard.press("Escape");
|
||||
// Devant le palier (Puissance 80), l'Éveil remplace l'amélioration aux Éclats : le joueur a un doublon du Loup, qui l'éveillerait.
|
||||
const { path: progressDatabasePath } = JSON.parse(await readFile(join(tmpdir(), "sokkog-cards-e2e-db.json"), "utf8"));
|
||||
|
|
@ -2113,6 +2114,7 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await partner.screenshot({ path: join(tmpdir(), "sokkog-cards-recycle-rarity.png") });
|
||||
await recycleBox.getByRole("option", { name: "Légendaire", exact: true }).click();
|
||||
await expect(rarityTrigger).toHaveText("Légendaire");
|
||||
await expect(recycleBox).toContainText("Les doublons rares, épiques et légendaires servent aussi à éveiller vos cartes");
|
||||
// La confirmation nomme les raretés recyclées et ne montre que leur valeur.
|
||||
await recycleBox.getByRole("button", { name: "Recycler", exact: true }).click();
|
||||
const recycleConfirm = partner.getByRole("dialog", { name: /^Recycler \d+ doublons? \?$/ });
|
||||
|
|
|
|||
|
|
@ -208,6 +208,7 @@ export function validateSiteContent(site) {
|
|||
"cards.recycling.allButton",
|
||||
"cards.recycling.maxRarityLabel",
|
||||
"cards.recycling.none",
|
||||
"cards.recycling.keepForAwakening",
|
||||
"cards.recycling.confirmTitle",
|
||||
"cards.recycling.confirmText",
|
||||
"cards.recycling.confirmKept",
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@
|
|||
"eclatsAmount": "{value} Éclats",
|
||||
"upgradeDuplicate": "Améliorer avec un doublon",
|
||||
"upgradeHelp": "Vous avez {eclats} Éclats. Chaque retour d’expédition donne aussi de l’expérience.",
|
||||
"nextAwakening": "Prochain palier d’Éveil : Puissance {power}. Il se franchit avec des doublons, pas avec des Éclats.",
|
||||
"nextAwakening": "Prochain palier d’Éveil : Puissance {power}. Il ne se franchit qu’avec des doublons : montez les niveaux avec les Éclats et l’expérience, et gardez vos doublons pour les Éveils.",
|
||||
"awakeningWait": "Éveil nécessaire pour atteindre la Puissance {power}",
|
||||
"awakeningTitle": "Éveil · Puissance {power}",
|
||||
"awakeningText": "Pour franchir ce palier, la carte doit s’éveiller. L’Éveil ne coûte pas d’Éclats : il utilise un doublon de la carte elle-même, ou des doublons d’autres cartes de sa collection et de sa rareté. D’ici là, l’expérience des expéditions ne la fait plus progresser.",
|
||||
|
|
@ -289,6 +289,7 @@
|
|||
"maxRarityLabel": "Jusqu’à la rareté",
|
||||
"ratesLabel": "Poussière gagnée par doublon",
|
||||
"none": "Aucun doublon de ces raretés pour le moment.",
|
||||
"keepForAwakening": "Les doublons rares, épiques et légendaires servent aussi à éveiller vos cartes : ne recyclez que ceux dont vous n’aurez pas besoin.",
|
||||
"confirmTitle": "Recycler {count} ?",
|
||||
"confirmText": "Vos doublons {rarities} deviennent {stardust} d’étoiles.",
|
||||
"confirmKept": "Vous gardez toujours un exemplaire de chaque carte. Les doublons promis dans un échange ou un don en cours restent de côté, et les mythiques se recyclent une par une, depuis leur fiche.",
|
||||
|
|
|
|||
|
|
@ -91,7 +91,8 @@ function CardProgress({ catalog, state, progress, eclats, locked, busy, runMutat
|
|||
{progress.spare > 0 && <button className="nds-button" data-variant="secondary" type="button" disabled={busy} onClick={() => runMutation(() => upgradeCard(progress.editionId, "duplicate"))}>{content.upgradeDuplicate}</button>}
|
||||
</div>
|
||||
<p className="nebula-form-help">{fillTemplate(content.upgradeHelp, { eclats: formatEclats(eclats) })}</p>
|
||||
{nextAwakening && <p className="nebula-form-help">{fillTemplate(content.nextAwakening, { power: nextAwakening })}</p>}
|
||||
{/* Tant qu'un palier reste à franchir, les doublons valent plus pour l'Éveil que pour un niveau ordinaire. */}
|
||||
{nextAwakening && <p className="nds-inline-notice" data-variant="info">{fillTemplate(content.nextAwakening, { power: nextAwakening })}</p>}
|
||||
</section>}
|
||||
<CardPlan key={`${progress.plan.id}-${progress.plan.points}-${JSON.stringify(progress.plan.allocation)}`} progress={progress} oblivions={state.items?.oblivion ?? 0} locked={locked} busy={busy} runMutation={runMutation} onPreview={onPreview} content={content.plan} statNames={content.stats} />
|
||||
</>;
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
|
|||
<StardustBalance value={wallet.stardust} />
|
||||
<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} />
|
||||
{preview.count ? <p><strong>{countDuplicates(preview.count)}</strong> à recycler pour <strong>+{formatStardust(preview.stardust)}</strong></p> : <p>{content.none}</p>}
|
||||
{maxRarity !== "common" && <p className="nebula-form-help">{content.keepForAwakening}</p>}
|
||||
<div className="nebula-recycle-box-actions">
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue