Illustrate the Carnets des Veilleurs and grow the collection to 20 cards

All 20 cards and the card back now have their watercolour naturalist
illustrations, so the whole collection can drop from expeditions.

- Add the Kitsune, Ouvreur des Passages (legendary), the Chauve-souris des
  Nuits sans Étoiles (epic), the Furet Messager des Îles (rare), and two
  power commons, the Lanterne de tempête and the Cloche de brume, placed in
  the Passage Écarlate, the Grand Vide and the Courants de Lumière.
- Code the two new powers: the lantern softens dangers but adds travel
  time; the bell adds synergy in group expeditions but costs loot solo.
  Both are tunable from the admin settings and covered by tests.
- Rewrite the illustration guide around the naturalist style and what the
  tests taught (portrait first for legendaries, hero size and paws spelled
  out, no Nebula pose reused, paper margins trimmed).
- Make the Suricate de la Vigie masculine, like the Nebula character, and
  keep the drop test independent of which cards are illustrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-15 23:42:05 +01:00
parent 21827a252b
commit beef966337
38 changed files with 780 additions and 88 deletions

View file

@ -261,6 +261,8 @@ export function validateSiteContent(site) {
"cards.expeditions.powers.talisman",
"cards.expeditions.powers.madCompass",
"cards.expeditions.powers.starNet",
"cards.expeditions.powers.stormLantern",
"cards.expeditions.powers.fogBell",
"cards.expeditions.hiddenRequirements",
"cards.expeditions.hiddenResult",
"cards.expeditions.travelTime",

View file

@ -687,11 +687,19 @@ test("returned expeditions credit the objects they bring back", () => {
assert.equal(Object.values(items).reduce((sum, count) => sum + count, 0), 2);
});
// Les cartes des Carnets attendent leurs illustrations : les tests leur en donnent une, en mémoire, pour ce service seulement.
// Toutes les cartes des Carnets n'ont pas encore leur illustration : les tests leur en donnent une, ou la leur retirent,
// en mémoire, pour ce service seulement.
function illustrateLogbooks(service) {
for (const card of service.catalog.cards.filter((item) => item.collectionId === "watchers-logbooks")) card.image = `/static/img/cards/watchers-logbooks/${card.id}.webp`;
}
function unillustrateLogbooks(service) {
for (const card of service.catalog.cards.filter((item) => item.collectionId === "watchers-logbooks")) {
delete card.image;
delete card.fullImage;
}
}
test("the Carnets des Veilleurs never come from packs, and their cards only drop once illustrated", () => {
const { clock, service, admin, player, open, rares } = expeditionService();
assert.throws(() => service.setCollectionActive(admin.id, "watchers-logbooks", true), (error) => error.code === "EXPEDITION_COLLECTION");
@ -700,6 +708,7 @@ test("the Carnets des Veilleurs never come from packs, and their cards only drop
open({ carnets: { cardPerHourPermille: 1000, maxCards: 1 } });
const view = service.expeditions.getExpeditions(player.id);
// Sans illustration, aucune carte des Carnets n'est rapportée, même avec une chance pleine.
unillustrateLogbooks(service);
const first = service.expeditions.startSolo(player.id, soloBody(view, rares.slice(0, 2)), "no-art");
clock.now += 2 * HOUR;
assert.deepEqual(service.expeditions.claim(player.id, first.expedition.id).expedition.reward.cards, []);

View file

@ -248,7 +248,7 @@ test("commons carry equipment spread over a fixed budget, and every card has syn
assert.equal(commons.length, 68);
for (const card of commons) assert.equal(Object.values(card.expedition.equipment.stats).reduce((sum, value) => sum + value, 0), 6, card.id);
// Les communes des Carnets des Veilleurs portent chacune un pouvoir, et aucune stat.
assert.deepEqual(rawCatalog.cards.filter((card) => card.expedition.equipment?.power).map((card) => card.expedition.equipment.power).sort(), ["longsight", "madCompass", "rations", "starNet", "talisman", "treasureMap"]);
assert.deepEqual(rawCatalog.cards.filter((card) => card.expedition.equipment?.power).map((card) => card.expedition.equipment.power).sort(), ["fogBell", "longsight", "madCompass", "rations", "starNet", "stormLantern", "talisman", "treasureMap"]);
assert.throws(() => prepareVersionedCatalog({ ...structuredClone(rawCatalog), cards: rawCatalog.cards.map((card) => (card.id === "mad-compass" ? { ...card, expedition: { ...card.expedition, equipment: { power: "flying" } } } : card)) }), /known power/);
const broken = (change) => {
const copy = structuredClone(rawCatalog);
@ -334,4 +334,19 @@ test("powers trade an advantage for a cost and count once per team", () => {
assert.equal(loot(["rations"]).eclats, loot([]).eclats * 0.85);
assert.equal(loot(["longsight"]).packs, loot([]).packs * 1.25);
assert.deepEqual([travelHours(6, [], settings), travelHours(6, ["longsight"], settings), travelHours(8, ["rations"], settings)], [6, 8, 6]);
// Lanterne de tempête : un danger subi pèse moitié moins, mais le trajet dure une heure de plus.
const exposed = { bravoure: 10, endurance: 0, fortune: 10, orientation: 10 };
const danger = { id: "storm", stat: "bravoure", countered: false };
const struck = applyHazards(exposed, { slotCount: 2, durationIndex: 0, dangers: [danger] }, settings).dangers[0];
const sheltered = applyHazards(exposed, { slotCount: 2, durationIndex: 0, dangers: [danger], dangerReliefPct: settings.powers.stormLanternDangerPct }, settings).dangers[0];
assert.ok(struck.factor < 1);
assert.ok(Math.abs((1 - sheltered.factor) - (1 - struck.factor) * 0.5) < 1e-9);
const stars5 = (powers) => evaluateTeam({ destination, entry, stars: 5, durationIndex: 0, slots: [{ ...slot(), stats: exposed, role: destination.stats[0] }, { ...slot(), stats: exposed, role: destination.stats[1] }], powers }, settings);
assert.ok(stars5(["stormLantern"]).scorePct >= stars5([]).scorePct);
assert.equal(travelHours(6, ["stormLantern"], settings), 7);
// Cloche de brume : du butin en moins en solo, rien en groupe ; en groupe, un bonus de synergie.
assert.ok(Math.abs(loot(["fogBell"]).eclats - loot([]).eclats * 0.8) < 1e-9);
const groupLoot = (powers) => expectedLoot({ hours: 10, stars: 1, tier: "success", fortune: 0, slotCount: 2, powers, group: true }, settings);
assert.equal(groupLoot(["fogBell"]).eclats, groupLoot([]).eclats);
assert.equal(teamSynergy({ destination, slots: [], bellPct: settings.powers.fogBellSynergyPct }, settings).totalPct, 10);
});