Show what each destination looks for and what it yields in two small panels, and keep specialties off collection destinations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7d331d1a3f
commit
d85d6d8ffa
9 changed files with 76 additions and 36 deletions
|
|
@ -228,8 +228,11 @@ test("destination landscapes point to existing images of their folder", async ()
|
|||
const raw = JSON.parse(await readFile(destinationsPath, "utf8"));
|
||||
assert.throws(() => validateExpeditionDestinations([{ ...raw[0], image: "/static/img/cards/other.webp" }, ...raw.slice(1)], catalog), /image must be/);
|
||||
const linked = raw.findIndex((destination) => destination.rewardCollectionId);
|
||||
const withCards = raw.map((destination, index) => (index === linked ? { ...destination, specialty: "cards" } : destination));
|
||||
assert.throws(() => validateExpeditionDestinations(withCards, catalog), /cannot have the cards specialty/);
|
||||
const withSpecialty = raw.map((destination, index) => (index === linked ? { ...destination, specialty: "eclats" } : destination));
|
||||
assert.throws(() => validateExpeditionDestinations(withSpecialty, catalog), /cannot have a specialty/);
|
||||
// Chaque spécialité reste portée par au moins une destination visible.
|
||||
const specialties = new Set(raw.filter((destination) => !destination.hidden).map((destination) => destination.specialty).filter(Boolean));
|
||||
assert.deepEqual([...specialties].sort(), ["cards", "eclats", "items", "stardust"]);
|
||||
});
|
||||
|
||||
// Spécialités de butin : la récompense de la spécialité ×boostPct, les autres ×otherPct (cartes de collection comprises), rien sans
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue