Illustrate a destination card for every expedition destination and make the hidden ones trophies
Every destination now has its rare destination card, shown full-art: La Fête des Îles Réunies in La Longue Nuit, Les Îles-Niveaux in L'Arcade des Rêves, Le Cœur du Nuage Cosmique in the Primordial Nebula, and the twelve others in Les Carnets des Veilleurs. Most cards crop their landscape; Le Versant de la Lune Pâle, Les Îles-Niveaux and Le Passage Écarlate were painted again in portrait. The two hidden destinations are trophies: their card always comes back to whoever goes there without it, and never as a starter card or a random drop. Since every visible destination is now locked behind its card, test players and the e2e partner receive all destination cards to keep four daily destinations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
@ -367,3 +367,5 @@
|
|||
{"id":"int-fce5ec74633346dda24000b0367ecccd","kind":"field_change","created_at":"2026-11-16T14:55:10.19202341Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs.4","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Tirage du jour personnel parmi les destinations débloquées"}}
|
||||
{"id":"int-fce12a00be56979a9c47b9ca6b4d92eb","kind":"field_change","created_at":"2026-11-16T14:55:22.933981509Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs.5","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Niveaux de 1 au nombre de destinations tirées"}}
|
||||
{"id":"int-ac6adc9ecff6e7bb0e760ee06f0e08e0","kind":"field_change","created_at":"2026-11-16T15:02:43.868188025Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs.6","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Carte de départ, carte non possédée rapportée d'expédition (dropPct), carte de la destination d'un groupe rejoint (groupJoinPct). Les cartes des paquets (Fête, Îles-Niveaux) arriveront avec leurs illustrations (.3)."}}
|
||||
{"id":"int-48faa4692f9c6047c557041b65cfac3d","kind":"field_change","created_at":"2026-11-16T15:25:41.66271047Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs.3","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"15 cartes de destination illustrées (10 recadrées, 4 régénérées en 5:7, le Nuage généré en 5:7)"}}
|
||||
{"id":"int-3e43663693b85185e12f0a2d0053e471","kind":"field_change","created_at":"2026-11-16T15:25:58.762199114Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Cartes de destination : type de carte, tirage personnel, niveaux, obtention, trophées, 15 cartes illustrées"}}
|
||||
|
|
|
|||
|
|
@ -140,7 +140,8 @@ Expéditions (migration 8, règles pures dans `services/cards/expedition-rules.j
|
|||
reçoit une carte de destination des Carnets au hasard (`destination_starter` dans l'historique, une seule
|
||||
fois). Le butin d'une expédition, tiré au départ et ajouté à la collection au retour, peut contenir une
|
||||
carte de destination des Carnets qu'il n'a pas (`destinationCards.dropPct`) et, en groupe, la carte de la
|
||||
destination s'il ne l'a pas (`destinationCards.groupJoinPct`).
|
||||
destination s'il ne l'a pas (`destinationCards.groupJoinPct`). La carte d'une destination cachée est un
|
||||
trophée : toujours donnée à qui y va sans l'avoir, jamais en carte de départ ni au hasard.
|
||||
- `expeditions(id, mode, day, destination_id, difficulty, duration_ms, creator_id, status, setup_json,
|
||||
result_json, created_at, departs_at, returns_at, completed_at)` : `mode` `solo` ou `group`,
|
||||
`status` `forming`, `running`, `completed` ou `cancelled` (« revenue » se déduit de `returns_at`).
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ Les carnets des Veilleurs racontent leurs expéditions : les outils qu'ils empor
|
|||
|
||||
## Cartes de destination
|
||||
|
||||
Chaque destination des Expéditions a sa carte (`kind: "destination"`, `destinationId`) : toujours **rare**, elle ne part jamais en équipe (ni étiquettes, ni profil, ni équipement) et s'affiche en pleine illustration (`image` carrée et `fullImage` 5:7). Elle débloque sa destination. Une seule carte de destination par collection à paquets (Nébuleuse : Le Cœur du Nuage Cosmique ; Longue Nuit : La Fête des Îles Réunies ; Arcade : Les Îles-Niveaux) ; les autres sont dans Les Carnets des Veilleurs et s'obtiennent en expédition : une carte de départ offerte à la première visite, une chance d'en rapporter une qu'on n'a pas, et une forte chance d'obtenir celle de la destination d'un groupe rejoint sans l'avoir.
|
||||
Chaque destination des Expéditions a sa carte (`kind: "destination"`, `destinationId`) : toujours **rare**, elle ne part jamais en équipe (ni étiquettes, ni profil, ni équipement) et s'affiche en pleine illustration (`image` carrée et `fullImage` 5:7). Elle débloque sa destination. Une seule carte de destination par collection à paquets (Nébuleuse : Le Cœur du Nuage Cosmique ; Longue Nuit : La Fête des Îles Réunies ; Arcade : Les Îles-Niveaux) ; les autres sont dans Les Carnets des Veilleurs et s'obtiennent en expédition : une carte de départ offerte à la première visite, une chance d'en rapporter une qu'on n'a pas, et une forte chance d'obtenir celle de la destination d'un groupe rejoint sans l'avoir. Les cartes des destinations cachées sont des trophées : elles ne s'obtiennent qu'en y allant, et à coup sûr.
|
||||
|
||||
## Ajouter une carte aux Expéditions
|
||||
|
||||
|
|
|
|||
|
|
@ -119,6 +119,28 @@ for y in 60 100 150; do
|
|||
done
|
||||
```
|
||||
|
||||
## Cartes de destination (5:7)
|
||||
|
||||
Chaque destination a aussi sa carte (rare, affichée en pleine illustration) : `fullImage` 1060 × 1484 et `image` carrée 800 × 800, dans `static/img/cards/<collection>/rare/<id>.webp` et `<id>__full.webp`. On recadre le paysage 3:2 quand sa signature tient dans une bande verticale de 731 px de large ; sinon, on demande à ChatGPT la version portrait du même paysage.
|
||||
|
||||
```bash
|
||||
# X = bord gauche de la bande gardée (0, 402 au centre, 805 à droite).
|
||||
ffmpeg -i ".local/<image>.png" -vf "crop=731:1024:X:0,scale=1060:1484:flags=lanczos" <dossier>/<id>__full.png
|
||||
ffmpeg -i ".local/<image>.png" -vf "crop=731:731:X:146,scale=800:800:flags=lanczos" <dossier>/<id>.png
|
||||
npm run images:convert -- <dossier> --quality=90 --preset=picture
|
||||
```
|
||||
|
||||
| Carte | Collection | Source |
|
||||
|---|---|---|
|
||||
| Le Cœur du Nuage Cosmique | Nébuleuse Originelle | générée en 5:7 |
|
||||
| La Fête des Îles Réunies | Longue Nuit | recadrée, X = 402 |
|
||||
| Les Courants de Lumière, les Ruines Oubliées, le Grand Vide, le Cratère de l'Écaille, les Lacs des Comètes, les Vieux Observatoires, les Glaces de la Longue Nuit, la Bande de la Voie Lactée | Carnets des Veilleurs | recadrées, X = 402 |
|
||||
| Le Rivage de l'Aube | Carnets des Veilleurs | recadrée, X = 805 (le Soleil) |
|
||||
| Le Versant de la Lune Pâle | Carnets des Veilleurs | générée en 5:7 (`.local/Lunar Isles Over the Frosted Cloud Sea.png`, carré Y = 60) : aucune bande du paysage ne gardait la lune et les roches |
|
||||
| Les Îles-Niveaux | Arcade des Rêves | générée en 5:7 (`.local/Whimsical Floating Island Treasure Quest.png`, carré Y = 212) : l'escalier d'îlots devenait illisible |
|
||||
| L'Observatoire perdu (trophée) | Carnets des Veilleurs | recadrée, X = 402 |
|
||||
| Le Passage Écarlate (trophée) | Carnets des Veilleurs | générée en 5:7 (`.local/Crimson Moon Over the Floating Citadel.png`, carré Y = 230, centré sur l'arche) : la lune et l'arche ne tenaient pas dans une bande |
|
||||
|
||||
## Kit de démarrage
|
||||
|
||||
À coller au début de chaque conversation, avec **l'image d'ancrage** `.local/ancre-veilleurs-naturaliste.png` et, à partir du lot P2, **l'image modèle** (le premier paysage validé).
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ const seedDatabase = new CardsDatabase(process.env.CARDS_DB_PATH);
|
|||
const seedService = new CardsService({ database: seedDatabase, catalog: loadCardsCatalog(join(import.meta.dirname, "..", "website", "public", "data", "cards", "catalog.json")) });
|
||||
const partner = seedService.upsertPlayer({ discordId: "e2e-partner", displayName: "Partenaire E2E" });
|
||||
for (const editionId of ["aurora-wolf-standard", "aurora-wolf-standard", "aurora-wolf-standard", "aurora-wolf-standard", "starvoid-dragon-standard", "starvoid-dragon-standard", "starvoid-dragon-standard"]) seedService.addCard(partner.id, editionId);
|
||||
// Toutes les cartes de destination : le parcours des Expéditions tire ses 4 destinations du jour parmi toutes.
|
||||
for (const card of seedService.catalog.cards.filter((item) => item.kind === "destination")) seedService.addCard(partner.id, seedService.catalog.editions.find((edition) => edition.cardId === card.id).id);
|
||||
seedDatabase.db.prepare("UPDATE players SET stardust = 500 WHERE id = ?").run(partner.id);
|
||||
writeFileSync(join(tmpdir(), "sokkog-cards-e2e-partner.json"), JSON.stringify({ token: seedService.createSession(partner.id).token }));
|
||||
// Une base neuve n'a aucune variation mythique : les parcours de jeu et d'administration en ont besoin.
|
||||
|
|
|
|||
|
|
@ -228,12 +228,15 @@ export class ExpeditionService {
|
|||
return { eclats: loot.eclats, stardust: loot.stardust, packs, items, cards };
|
||||
}
|
||||
|
||||
// Éditions des cartes de destination illustrées ; avec `expeditionOnly`, seulement celles des collections des Expéditions.
|
||||
// Éditions des cartes de destination illustrées ; avec `expeditionOnly`, seulement celles à trouver en expédition (collections des
|
||||
// Expéditions, hors trophées des destinations cachées, qui ne s'obtiennent qu'en y allant).
|
||||
destinationCardEditions({ expeditionOnly = false } = {}) {
|
||||
const expeditionCollections = new Set(this.cards.catalog.collections.filter((collection) => collection.packCategory === "expedition").map((collection) => collection.id));
|
||||
const hidden = new Set(this.destinations.filter((destination) => destination.hidden).map((destination) => destination.id));
|
||||
return this.cards.catalog.editions.filter((edition) => {
|
||||
const card = this.cards.index.cards.get(edition.cardId);
|
||||
return card?.kind === "destination" && card.image && !edition.promotional && (!expeditionOnly || expeditionCollections.has(card.collectionId));
|
||||
return card?.kind === "destination" && card.image && !edition.promotional
|
||||
&& (!expeditionOnly || (expeditionCollections.has(card.collectionId) && !hidden.has(card.destinationId)));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -244,8 +247,10 @@ export class ExpeditionService {
|
|||
rollDestinationCards(playerId, destination, settings, { group, random }) {
|
||||
const owned = this.ownedCardIds(playerId);
|
||||
const cards = [];
|
||||
const joined = group && this.destinationCardEditions().find((edition) => this.cards.index.cards.get(edition.cardId).destinationId === destination?.id);
|
||||
if (joined && !owned.has(joined.cardId) && random(100) < settings.destinationCards.groupJoinPct) cards.push(joined.id);
|
||||
const own = this.destinationCardEditions().find((edition) => this.cards.index.cards.get(edition.cardId).destinationId === destination?.id);
|
||||
// Trophée : la carte d'une destination cachée revient à coup sûr à qui y va sans l'avoir.
|
||||
const hidden = this.destinations.find((item) => item.id === destination?.id)?.hidden;
|
||||
if (own && !owned.has(own.cardId) && (hidden || (group && random(100) < settings.destinationCards.groupJoinPct))) cards.push(own.id);
|
||||
const missing = this.destinationCardEditions({ expeditionOnly: true }).filter((edition) => !owned.has(edition.cardId) && !cards.includes(edition.id));
|
||||
if (missing.length && random(100) < settings.destinationCards.dropPct) cards.push(missing[random(missing.length)].id);
|
||||
return cards;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,10 @@ const editionsOf = (rarity, collectionId = "primordial-nebula") => published.edi
|
|||
.filter((edition) => edition.rarity === rarity && published.cards.find((card) => card.id === edition.cardId).collectionId === collectionId)
|
||||
.map((edition) => edition.id);
|
||||
|
||||
function expeditionService({ start = Date.parse("2026-11-15T09:00:00Z"), random = () => 0, catalog = baseCatalog } = {}) {
|
||||
// Par défaut, le joueur a toutes les cartes de destination : ses 4 destinations du jour sont tirées parmi toutes.
|
||||
const destinationEditions = published.editions.filter((edition) => published.cards.find((card) => card.id === edition.cardId).kind === "destination").map((edition) => edition.id);
|
||||
|
||||
function expeditionService({ start = Date.parse("2026-11-15T09:00:00Z"), random = () => 0, catalog = baseCatalog, allDestinations = true } = {}) {
|
||||
const clock = { now: start };
|
||||
const database = new CardsDatabase(":memory:");
|
||||
const service = new CardsService({ database, catalog, now: () => clock.now, random });
|
||||
|
|
@ -32,6 +35,7 @@ function expeditionService({ start = Date.parse("2026-11-15T09:00:00Z"), random
|
|||
const open = (changes = {}) => service.expeditions.updateSettings(admin.id, { ...service.expeditions.settings, enabled: true, ...changes });
|
||||
const rares = editionsOf("rare");
|
||||
database.transaction(() => rares.slice(0, 4).forEach((editionId) => service.addCard(player.id, editionId)));
|
||||
if (allDestinations) database.transaction(() => destinationEditions.forEach((editionId) => service.addCard(player.id, editionId)));
|
||||
return { clock, database, service, admin, player, open, rares };
|
||||
}
|
||||
|
||||
|
|
@ -63,56 +67,47 @@ test("expeditions stay closed until an administrator opens them", () => {
|
|||
// Cartes de destination : on ne tire que les destinations débloquées (une destination sans carte au catalogue reste ouverte),
|
||||
// avec un niveau de chaque jusqu'au nombre de destinations tirées ; une carte obtenue dans la journée complète le tirage.
|
||||
test("each player draws the day among the destinations their cards unlock", () => {
|
||||
const { service, player, open, database } = expeditionService();
|
||||
const { service, player, open, database } = expeditionService({ allDestinations: false });
|
||||
const other = service.upsertPlayer({ discordId: "expedition-other", displayName: "Other" });
|
||||
const cloud = published.cards.find((card) => card.kind === "destination" && card.destinationId === "cosmic-cloud-heart");
|
||||
const cloudEdition = published.editions.find((edition) => edition.cardId === cloud.id).id;
|
||||
assert.equal(service.expeditions.unlockedDestinationIds(player.id).has("cosmic-cloud-heart"), false);
|
||||
assert.equal(service.expeditions.unlockedDestinationIds(player.id).has("light-currents"), true);
|
||||
assert.equal(service.expeditions.unlockedDestinationIds(player.id).has("crimson-passage"), false);
|
||||
// Avant sa première visite : aucune carte, seules les destinations encore sans carte au catalogue sont ouvertes.
|
||||
const unlocked = service.expeditions.unlockedDestinationIds(player.id);
|
||||
assert.equal(unlocked.has("light-currents"), false);
|
||||
assert.equal(unlocked.has("cosmic-cloud-heart"), false);
|
||||
assert.equal(unlocked.has("crimson-passage"), false);
|
||||
// Seules trois destinations restent proposées : les Courants, le Grand Vide et le Cœur du Nuage.
|
||||
const kept = new Set(["light-currents", "great-void", "cosmic-cloud-heart"]);
|
||||
open({ destinations: Object.fromEntries(Object.entries(service.expeditions.settings.destinations).map(([id, value]) => [id, { ...value, active: kept.has(id) }])) });
|
||||
const before = service.expeditions.getExpeditions(player.id).destinations;
|
||||
assert.deepEqual(before.map((item) => item.id).sort(), ["great-void", "light-currents"]);
|
||||
assert.deepEqual(before.map((item) => item.level).sort(), [0, 1]);
|
||||
assert.deepEqual(before.map((item) => item.soloStar).sort(), [1, 2]);
|
||||
// Sa carte du Cœur du Nuage complète le tirage du jour ; l'autre joueur, sans la carte, ne la voit pas.
|
||||
database.transaction(() => service.addCard(player.id, cloudEdition));
|
||||
// Première visite : la carte de départ (random() = 0, les Courants) ouvre une seule destination, au niveau le plus facile.
|
||||
const before = service.expeditions.getExpeditions(player.id);
|
||||
assert.deepEqual(before.destinations.map((item) => [item.id, item.level, item.soloStar]), [["light-currents", 0, 1]]);
|
||||
assert.deepEqual(before.unlocked.count >= 1 && before.unlocked.total, 13);
|
||||
// Sa carte du Cœur du Nuage complète le tirage du jour, avec les niveaux 1 et 2 ; l'autre joueur, sans la carte, ne la voit pas.
|
||||
database.transaction(() => service.addCard(player.id, "cosmic-cloud-heart-standard"));
|
||||
const after = service.expeditions.getExpeditions(player.id).destinations;
|
||||
assert.deepEqual(after.map((item) => item.id).sort(), ["cosmic-cloud-heart", "great-void", "light-currents"]);
|
||||
assert.deepEqual(after.map((item) => item.level).sort(), [0, 1, 2]);
|
||||
assert.deepEqual(service.expeditions.getExpeditions(other.id).destinations.map((item) => item.id).sort(), ["great-void", "light-currents"]);
|
||||
// Une destination qui n'est pas dans son tirage ne se lance pas.
|
||||
assert.deepEqual(after.map((item) => item.id).sort(), ["cosmic-cloud-heart", "light-currents"]);
|
||||
assert.deepEqual(after.map((item) => item.level).sort(), [0, 1]);
|
||||
const view = service.expeditions.getExpeditions(other.id);
|
||||
assert.deepEqual(view.destinations.map((item) => item.id), ["light-currents"]);
|
||||
// Une destination qui n'est pas dans son tirage ne se lance pas.
|
||||
assert.throws(() => service.expeditions.preview(other.id, { day: view.day, destinationId: "cosmic-cloud-heart", durationHours: 2, slots: [] }), (error) => error.code === "EXPEDITION_INVALID");
|
||||
});
|
||||
|
||||
// Catalogue de test : deux cartes de destination illustrées dans les Carnets (les Courants de Lumière et le Grand Vide).
|
||||
const logbookDestinationCatalog = (() => {
|
||||
const raw = JSON.parse(rawCatalogText);
|
||||
for (const [destinationId, file] of [["light-currents", "light_currents"], ["great-void", "great_void"]]) {
|
||||
raw.cards.push({ id: `destination-${destinationId}`, collectionId: "watchers-logbooks", name: destinationId, description: "Une destination.", image: `/static/img/cards/watchers-logbooks/rare/${file}.webp`, kind: "destination", destinationId });
|
||||
raw.editions.push({ id: `destination-${destinationId}-standard`, cardId: `destination-${destinationId}`, rarity: "rare", finishIds: ["standard"], promotional: false });
|
||||
}
|
||||
return prepareVersionedCatalog(raw);
|
||||
})();
|
||||
const destinationCardsOf = (service, playerId) => service.getState(playerId).collection.map((entry) => entry.editionId).filter((id) => id.startsWith("destination-"));
|
||||
const destinationCardsOf = (service, playerId) => service.getState(playerId).collection.map((entry) => entry.editionId).filter((id) => destinationEditions.includes(id));
|
||||
|
||||
// Obtention : une carte de destination de départ offerte une fois, une carte non possédée rapportée d'expédition, et la carte de la
|
||||
// destination d'un groupe rejoint sans l'avoir.
|
||||
test("players receive a starter destination card, then find more on expeditions and in groups", () => {
|
||||
const { clock, service, player, open, rares, database, second, arcade } = groupService({ catalog: logbookDestinationCatalog });
|
||||
const { clock, service, player, open, rares, database, second, arcade } = groupService({ allDestinations: false });
|
||||
open({ destinationCards: { dropPct: 100, groupJoinPct: 100 } });
|
||||
// random() = 0 : la carte de départ est la première des Carnets, les Courants de Lumière.
|
||||
service.expeditions.getExpeditions(player.id);
|
||||
assert.deepEqual(destinationCardsOf(service, player.id), ["destination-light-currents-standard"]);
|
||||
assert.deepEqual(destinationCardsOf(service, player.id), ["light-currents-standard"]);
|
||||
service.expeditions.getExpeditions(player.id);
|
||||
assert.equal(destinationCardsOf(service, player.id).length, 1);
|
||||
assert.equal(service.getState(player.id).history.filter((entry) => entry.type === "destination_starter").length, 1);
|
||||
assert.ok(service.expeditions.unlockedDestinationIds(player.id).has("light-currents"));
|
||||
assert.equal(service.expeditions.unlockedDestinationIds(player.id).has("great-void"), false);
|
||||
// Un groupe vers les Courants : le second joueur, sans leur carte, la gagne ; le créateur gagne la carte qu'il n'a pas.
|
||||
assert.equal(service.expeditions.unlockedDestinationIds(player.id).has("dawn-shore"), false);
|
||||
// Un groupe vers les Courants : le second joueur, sans leur carte, la gagne ; le créateur gagne une carte qu'il n'a pas.
|
||||
const view = service.expeditions.getExpeditions(player.id);
|
||||
const destination = view.destinations.find((item) => item.id === "light-currents");
|
||||
const [mainRole, secondRole] = destination.groupRoles;
|
||||
|
|
@ -123,15 +118,20 @@ test("players receive a starter destination card, then find more on expeditions
|
|||
service.expeditions.joinGroup(second.id, groupId, { editionId: arcade[0], role: secondRole });
|
||||
service.expeditions.departGroup(player.id, groupId);
|
||||
const rewardOf = (playerId) => JSON.parse(database.db.prepare("SELECT reward_json FROM expedition_members WHERE expedition_id = ? AND player_id = ?").get(groupId, playerId).reward_json).cards;
|
||||
// Le second gagne la carte des Courants (groupe rejoint), puis une carte qu'il n'a pas, le Grand Vide.
|
||||
assert.deepEqual(rewardOf(second.id).filter((id) => id.startsWith("destination-")), ["destination-light-currents-standard", "destination-great-void-standard"]);
|
||||
assert.deepEqual(rewardOf(player.id).filter((id) => id.startsWith("destination-")), ["destination-great-void-standard"]);
|
||||
// Le second gagne la carte des Courants (groupe rejoint), puis une carte qu'il n'a pas, la première restante : le Rivage de l'Aube.
|
||||
assert.deepEqual(rewardOf(second.id).filter((id) => destinationEditions.includes(id)), ["light-currents-standard", "dawn-shore-standard"]);
|
||||
assert.deepEqual(rewardOf(player.id).filter((id) => destinationEditions.includes(id)), ["dawn-shore-standard"]);
|
||||
clock.now += 3 * HOUR;
|
||||
service.expeditions.claim(second.id, groupId);
|
||||
assert.ok(destinationCardsOf(service, second.id).includes("destination-light-currents-standard"));
|
||||
// Plus aucune carte de destination à trouver : rien de plus.
|
||||
service.expeditions.claim(player.id, groupId);
|
||||
assert.ok(destinationCardsOf(service, second.id).includes("light-currents-standard"));
|
||||
// Trophée : la carte d'une destination cachée revient à coup sûr à qui y va sans l'avoir, mais n'est jamais tirée au hasard.
|
||||
const settings = { ...service.expeditions.settings, destinationCards: { dropPct: 0, groupJoinPct: 0 } };
|
||||
assert.deepEqual(service.expeditions.rollDestinationCards(second.id, { id: "lost-observatory" }, settings, { group: false, random: () => 99 }), ["lost-observatory-standard"]);
|
||||
assert.ok(!service.expeditions.destinationCardEditions({ expeditionOnly: true }).some((edition) => edition.id === "lost-observatory-standard"));
|
||||
// Toutes les cartes des Carnets possédées : plus rien à trouver.
|
||||
database.transaction(() => destinationEditions.forEach((editionId) => service.addCard(player.id, editionId)));
|
||||
assert.deepEqual(service.expeditions.rollDestinationCards(player.id, { id: "light-currents" }, service.expeditions.settings, { group: true, random: () => 0 }), []);
|
||||
assert.deepEqual(service.expeditions.rollDestinationCards(player.id, { id: "lost-observatory" }, settings, { group: false, random: () => 0 }), []);
|
||||
});
|
||||
|
||||
test("a solo expedition freezes its team, hides its result until it returns and pays once", () => {
|
||||
|
|
@ -331,6 +331,8 @@ function groupService(options) {
|
|||
database.transaction(() => {
|
||||
arcade.slice(0, 2).forEach((editionId) => service.addCard(second.id, editionId));
|
||||
context.rares.slice(5, 7).forEach((editionId) => service.addCard(third.id, editionId));
|
||||
// Mêmes cartes de destination que le premier joueur : les trois tirent les mêmes destinations du jour.
|
||||
if (options?.allDestinations !== false) destinationEditions.forEach((editionId) => [second, third].forEach((member) => service.addCard(member.id, editionId)));
|
||||
});
|
||||
return { ...context, second, third, arcade };
|
||||
}
|
||||
|
|
@ -721,7 +723,8 @@ test("objects add bonus destinations, recall an expedition with an anchor and en
|
|||
const hidden = service.expeditions.addBonusDestination(player.id, { item: "fragment" }).expeditions.destinations.find((destination) => destination.bonusSlot === "hidden");
|
||||
assert.ok(["crimson-passage", "lost-observatory"].includes(hidden.id));
|
||||
assert.equal(service.expeditions.getExpeditions(player.id).items.fragment, 0);
|
||||
assert.deepEqual(service.expeditions.getExpeditions(service.upsertPlayer({ discordId: "other", displayName: "Other" }).id).destinations.map((destination) => destination.id), before.destinations.map((destination) => destination.id));
|
||||
// Les destinations bonus restent à ce joueur.
|
||||
assert.ok(service.expeditions.getExpeditions(service.upsertPlayer({ discordId: "other", displayName: "Other" }).id).destinations.every((destination) => !destination.bonusSlot));
|
||||
|
||||
// Ancre : rappel à mi-chemin, la moitié des Éclats et de la poussière, sans paquet ni objet.
|
||||
const view = service.expeditions.getExpeditions(player.id);
|
||||
|
|
|
|||
|
|
@ -46,9 +46,13 @@ test("every catalog card carries expedition tags and every collection a profile"
|
|||
|
||||
// Carte de destination : rare, sans données d'expédition, liée à une destination existante ; elle ne part jamais en équipe.
|
||||
test("a destination card is a rare that unlocks a destination and never joins a team", () => {
|
||||
// Les Courants de Lumière perdent leur carte du catalogue, remplacée par celle du test.
|
||||
const freeDestination = "light-currents";
|
||||
const withCard = (card, rarity = "rare") => {
|
||||
const copy = structuredClone(rawCatalog);
|
||||
copy.cards.push({ id: "card-light-currents", collectionId: "watchers-logbooks", name: "Les Courants de Lumière", description: "Une destination.", kind: "destination", destinationId: "light-currents", ...card });
|
||||
copy.cards = copy.cards.filter((item) => item.destinationId !== freeDestination);
|
||||
copy.editions = copy.editions.filter((edition) => copy.cards.some((item) => item.id === edition.cardId));
|
||||
copy.cards.push({ id: "card-light-currents", collectionId: "watchers-logbooks", name: "Une destination", description: "Une destination.", kind: "destination", destinationId: freeDestination, ...card });
|
||||
copy.editions.push({ id: "card-light-currents-standard", cardId: "card-light-currents", rarity, finishIds: ["standard"], promotional: false });
|
||||
return copy;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2641,6 +2641,16 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "reunited-isles-feast",
|
||||
"collectionId": "long-night",
|
||||
"name": "La Fête des Îles Réunies",
|
||||
"description": "Pendant la Longue Nuit, les îles se rapprochent pour la grande fête. Il y a des cadeaux à livrer dans tout l'archipel.",
|
||||
"image": "/static/img/cards/long-night/rare/reunited_isles_feast.webp",
|
||||
"fullImage": "/static/img/cards/long-night/rare/reunited_isles_feast__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "reunited-isles-feast"
|
||||
},
|
||||
{
|
||||
"id": "celestial-gift",
|
||||
"collectionId": "long-night",
|
||||
|
|
@ -3334,6 +3344,16 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "level-isles",
|
||||
"collectionId": "dream-arcade",
|
||||
"name": "Les Îles-Niveaux",
|
||||
"description": "Les rêves de jeu du Panda forment des îles pleines de blocs, de pièces et de coffres. Chaque niveau cache un trésor.",
|
||||
"image": "/static/img/cards/dream-arcade/rare/level_isles.webp",
|
||||
"fullImage": "/static/img/cards/dream-arcade/rare/level_isles__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "level-isles"
|
||||
},
|
||||
{
|
||||
"id": "golden-mystery-block",
|
||||
"collectionId": "dream-arcade",
|
||||
|
|
@ -3874,6 +3894,126 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "light-currents",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Les Courants de Lumière",
|
||||
"description": "Les courants qui relient les îles changent de route chaque nuit. Il faut lire les étoiles pour ne pas s'y perdre.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/light_currents.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/light_currents__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "light-currents"
|
||||
},
|
||||
{
|
||||
"id": "dawn-shore",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Le Rivage de l'Aube",
|
||||
"description": "Sur les îles tournées vers le Soleil, le jour se lève avant partout ailleurs. Le vent brûlant y souffle fort.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/dawn_shore.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/dawn_shore__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "dawn-shore"
|
||||
},
|
||||
{
|
||||
"id": "forgotten-ruins",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Les Ruines Oubliées",
|
||||
"description": "Des temples rêvés se cachent sous la végétation des îles-jeux. Leurs pièges gardent toujours un trésor.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/forgotten_ruins.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/forgotten_ruins__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "forgotten-ruins"
|
||||
},
|
||||
{
|
||||
"id": "great-void",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Le Grand Vide",
|
||||
"description": "Entre les îles, le noir est profond et les repères rares. Les bateaux du ciel y voyagent lentement.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/great_void.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/great_void__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "great-void"
|
||||
},
|
||||
{
|
||||
"id": "scale-crater",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Le Cratère de l'Écaille",
|
||||
"description": "Le cratère où la Salamandre a trouvé l'Écaille du Néant. Les météorites y tombent encore, toutes brûlantes.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/scale_crater.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/scale_crater__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "scale-crater"
|
||||
},
|
||||
{
|
||||
"id": "comet-lakes",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Les Lacs des Comètes",
|
||||
"description": "L'eau des îles est arrivée avec les comètes. Leurs lacs les plus anciens gardent des pierres aux reflets argentés.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/comet_lakes.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/comet_lakes__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "comet-lakes"
|
||||
},
|
||||
{
|
||||
"id": "old-observatories",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Les Vieux Observatoires",
|
||||
"description": "Les premiers observatoires des Veilleurs sont pleins de cartes, de carnets et d'instruments oubliés.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/old_observatories.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/old_observatories__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "old-observatories"
|
||||
},
|
||||
{
|
||||
"id": "long-night-ice",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Les Glaces de la Longue Nuit",
|
||||
"description": "Loin du Soleil, les îles se couvrent de glace. Seuls les plus endurants traversent les lacs gelés jusqu'au bout.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/long_night_ice.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/long_night_ice__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "long-night-ice"
|
||||
},
|
||||
{
|
||||
"id": "milky-way-band",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "La Bande de la Voie Lactée",
|
||||
"description": "Là où dort le Panda, la poussière d'étoiles s'assemble en rêves. On y trouve parfois une île qui vient de naître.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/milky_way_band.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/milky_way_band__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "milky-way-band"
|
||||
},
|
||||
{
|
||||
"id": "pale-moon-slope",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Le Versant de la Lune Pâle",
|
||||
"description": "Sous la Lune Pâle, les roches bleues brillent dans le noir. Il fait froid, mais on y voit loin.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/pale_moon_slope.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/pale_moon_slope__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "pale-moon-slope"
|
||||
},
|
||||
{
|
||||
"id": "lost-observatory",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "L’Observatoire perdu",
|
||||
"description": "Le premier observatoire des Veilleurs, bâti autour de l’Écaille du Néant, dérive quelque part dans le vide. Une carte au trésor complète y mène.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/lost_observatory.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/lost_observatory__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "lost-observatory"
|
||||
},
|
||||
{
|
||||
"id": "crimson-passage",
|
||||
"collectionId": "watchers-logbooks",
|
||||
"name": "Le Passage Écarlate",
|
||||
"description": "Les nuits de Lune Écarlate, le Kitsune ouvre un passage vers une île qu’on ne voit jamais autrement. Une carte au trésor en garde la trace.",
|
||||
"image": "/static/img/cards/watchers-logbooks/rare/crimson_passage.webp",
|
||||
"fullImage": "/static/img/cards/watchers-logbooks/rare/crimson_passage__full.webp",
|
||||
"kind": "destination",
|
||||
"destinationId": "crimson-passage"
|
||||
},
|
||||
{
|
||||
"id": "watchers-longsight",
|
||||
"collectionId": "watchers-logbooks",
|
||||
|
|
@ -5038,6 +5178,15 @@
|
|||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "reunited-isles-feast-standard",
|
||||
"cardId": "reunited-isles-feast",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "celestial-gift-standard",
|
||||
"cardId": "celestial-gift",
|
||||
|
|
@ -5416,6 +5565,15 @@
|
|||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "level-isles-standard",
|
||||
"cardId": "level-isles",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "golden-mystery-block-standard",
|
||||
"cardId": "golden-mystery-block",
|
||||
|
|
@ -5686,6 +5844,114 @@
|
|||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "light-currents-standard",
|
||||
"cardId": "light-currents",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "dawn-shore-standard",
|
||||
"cardId": "dawn-shore",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "forgotten-ruins-standard",
|
||||
"cardId": "forgotten-ruins",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "great-void-standard",
|
||||
"cardId": "great-void",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "scale-crater-standard",
|
||||
"cardId": "scale-crater",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "comet-lakes-standard",
|
||||
"cardId": "comet-lakes",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "old-observatories-standard",
|
||||
"cardId": "old-observatories",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "long-night-ice-standard",
|
||||
"cardId": "long-night-ice",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "milky-way-band-standard",
|
||||
"cardId": "milky-way-band",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "pale-moon-slope-standard",
|
||||
"cardId": "pale-moon-slope",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "lost-observatory-standard",
|
||||
"cardId": "lost-observatory",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "crimson-passage-standard",
|
||||
"cardId": "crimson-passage",
|
||||
"rarity": "rare",
|
||||
"finishIds": [
|
||||
"standard"
|
||||
],
|
||||
"promotional": false
|
||||
},
|
||||
{
|
||||
"id": "watchers-longsight-standard",
|
||||
"cardId": "watchers-longsight",
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 227 KiB |
|
After Width: | Height: | Size: 518 KiB |
|
After Width: | Height: | Size: 294 KiB |
|
After Width: | Height: | Size: 572 KiB |
|
After Width: | Height: | Size: 221 KiB |
|
After Width: | Height: | Size: 445 KiB |
|
After Width: | Height: | Size: 253 KiB |
|
After Width: | Height: | Size: 566 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
After Width: | Height: | Size: 397 KiB |
|
After Width: | Height: | Size: 305 KiB |
|
After Width: | Height: | Size: 600 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 541 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 411 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 430 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 468 KiB |
|
After Width: | Height: | Size: 278 KiB |
|
After Width: | Height: | Size: 553 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 513 KiB |
|
After Width: | Height: | Size: 240 KiB |
|
After Width: | Height: | Size: 446 KiB |