Let Sokko TCG players level up cards for Expeditions with Éclats or duplicates
- Each owned rare or better edition keeps a level and field experience; a level costs Éclats by current power, so every rarity reaches the same cap and a rare pays the longer road. - A duplicate of the same edition gives a whole level; every claimed expedition grants field experience to the cards it sent. - A one-way bridge turns stardust into Éclats at an admin-tuned rate. - The card sheet shows level, power, stats and experience with upgrade buttons; expeditions use the upgraded power. - Administration › Guilde tunes the cost formula, duplicate levels, field experience and the bridge rate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6b7605d04e
commit
e0ffccd1c8
22 changed files with 373 additions and 10 deletions
|
|
@ -1900,6 +1900,20 @@ test("an administrator opens expeditions and a player sends a team, then claims
|
|||
await groupCard.getByRole("button", { name: "Dissoudre le groupe", exact: true }).click();
|
||||
await expect(groupCard).toHaveCount(0);
|
||||
await expect(board).toContainText("Aucun groupe ouvert pour le moment");
|
||||
|
||||
// Pont des Veilleurs : 3 poussières pour 1 Éclat ; la fiche de carte montre le niveau, la Puissance et l'expérience gagnée au retour.
|
||||
const bridge = partner.getByRole("form", { name: "Pont des Veilleurs" });
|
||||
await bridge.getByRole("spinbutton", { name: "Éclats à obtenir" }).fill("2");
|
||||
await expect(bridge).toContainText("Coût : 6");
|
||||
await bridge.getByRole("button", { name: "Convertir", exact: true }).click();
|
||||
await expect(partner.getByRole("status").filter({ hasText: "+2 Éclats d’étoile !" })).toBeVisible();
|
||||
await partner.goto("/#/cards/collection");
|
||||
await partner.getByRole("button", { name: "Voir Loup des Aurores", exact: true }).first().click();
|
||||
const progress = partner.getByRole("dialog").getByRole("region", { name: /^Expéditions · niveau 0 \/ 6$/ });
|
||||
await expect(progress).toContainText("Puissance 70");
|
||||
await expect(progress.getByRole("progressbar", { name: "Expérience de terrain" })).toHaveAttribute("aria-valuenow", "10");
|
||||
await expect(progress.getByRole("button", { name: /^Améliorer · 70 Éclats$/ })).toBeVisible();
|
||||
await partner.keyboard.press("Escape");
|
||||
await partner.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Historique", exact: true }).click();
|
||||
await expect(partner.locator(".nebula-history-list li").filter({ hasText: "Expédition terminée" })).toContainText("★ · 2 h");
|
||||
await partnerContext.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue