Give destination cards on the first visit, in expedition loot and to group members
A player with no destination card receives one from the Carnets on their first visit to open expeditions. Expedition loot can hold a Carnets destination card the player does not own yet, and a group member without the card of the group's destination has a strong chance to get it. Both chances are expedition settings, and destination cards never drop as ordinary Carnets cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
06a4ab6d6a
commit
39dbeb9e2b
11 changed files with 115 additions and 13 deletions
|
|
@ -366,3 +366,4 @@
|
|||
{"id":"int-75660b406b7b2464bc61e2592656fef2","kind":"field_change","created_at":"2026-11-16T14:54:51.283828577Z","actor":"Shinuwa","issue_id":"sokko-g-q2qs.1","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Type de carte destination (commit 89eee7c)"}}
|
||||
{"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)."}}
|
||||
|
|
|
|||
|
|
@ -136,6 +136,11 @@ Expéditions (migration 8, règles pures dans `services/cards/expedition-rules.j
|
|||
(hachage du joueur, du jour et de la destination), la destination cachée prend le plus haut. Rejoindre
|
||||
un groupe ne demande pas la carte de sa destination. Les exigences chiffrées sont
|
||||
calculées à la lecture avec les réglages en vigueur, puis figées au départ.
|
||||
- Cartes de destination : à la première visite des Expéditions ouvertes, un joueur sans carte de destination
|
||||
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`).
|
||||
- `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.
|
||||
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.
|
||||
|
||||
## Ajouter une carte aux Expéditions
|
||||
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ export const groupMethods = {
|
|||
const multiplierPct = groupLootPct(members.length, settings);
|
||||
const expected = expectedLoot({ hours: setup.hours, stars: setup.stars, tier: evaluation.tier, fortune: evaluation.stats.fortune, slotCount: setup.roles.length, multiplierPct, bonusSlot: setup.bonusSlot ?? null, powers, group: true }, settings);
|
||||
const updateReward = this.db.prepare("UPDATE expedition_members SET reward_json = ? WHERE expedition_id = ? AND player_id = ?");
|
||||
for (const member of members) updateReward.run(JSON.stringify(this.rollReward(expected, settings, { orientationPerSlot: evaluation.stats.orientation / setup.roles.length, powers, destination })), row.id, member.playerId);
|
||||
for (const member of members) updateReward.run(JSON.stringify(this.rollReward(expected, settings, { orientationPerSlot: evaluation.stats.orientation / setup.roles.length, powers, destination, playerId: member.playerId, group: true })), row.id, member.playerId);
|
||||
const result = this.resultView(evaluation, { players: members.length, cohesionPct: cohesion, lootPct: multiplierPct, powers }, synergy);
|
||||
const travel = Math.round(travelHours(setup.hours, powers, settings) * HOUR_MS);
|
||||
this.db.prepare("UPDATE expeditions SET status = 'running', departs_at = ?, returns_at = ?, duration_ms = ?, result_json = ? WHERE id = ?")
|
||||
|
|
|
|||
|
|
@ -204,7 +204,9 @@ export class ExpeditionService {
|
|||
|
||||
// Butin tiré au départ : arrondi au hasard, collection de chaque paquet, objets (la partie cachée demande de l'Orientation),
|
||||
// cartes des Carnets de la destination, puis ce qu'ajoutent les pouvoirs (Carte au trésor, Filet à étoiles filantes).
|
||||
rollReward(expected, settings, { orientationPerSlot = 0, powers = [], destination = null } = {}) {
|
||||
// Cartes de destination : avec `playerId`, une chance d'en rapporter une qu'il n'a pas, et, dans un groupe (`group`), une forte
|
||||
// chance d'obtenir celle de la destination s'il ne l'a pas.
|
||||
rollReward(expected, settings, { orientationPerSlot = 0, powers = [], destination = null, playerId = null, group = false } = {}) {
|
||||
const random = (max) => this.random(max);
|
||||
const loot = rollLoot(expected, settings, random);
|
||||
const packs = [];
|
||||
|
|
@ -222,15 +224,52 @@ export class ExpeditionService {
|
|||
for (let index = roundStochastic(expected.cards, random); index > 0 && fromDestination.length; index -= 1) cards.push(this.pickLogbookEdition(fromDestination, random));
|
||||
const anyLogbook = this.logbookEditions();
|
||||
if (powers.includes("starNet") && anyLogbook.length && random(100) < settings.powers.starNetCardPct) cards.push(this.pickLogbookEdition(anyLogbook, random));
|
||||
if (playerId) cards.push(...this.rollDestinationCards(playerId, destination, settings, { group, random }));
|
||||
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.
|
||||
destinationCardEditions({ expeditionOnly = false } = {}) {
|
||||
const expeditionCollections = new Set(this.cards.catalog.collections.filter((collection) => collection.packCategory === "expedition").map((collection) => collection.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));
|
||||
});
|
||||
}
|
||||
|
||||
ownedCardIds(playerId) {
|
||||
return new Set(this.db.prepare("SELECT edition_id FROM collection_cards WHERE player_id = ?").all(playerId).map((row) => this.cards.index.editions.get(row.edition_id)?.cardId));
|
||||
}
|
||||
|
||||
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 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;
|
||||
}
|
||||
|
||||
// Carte de destination de départ : offerte une fois, au hasard parmi celles des Expéditions, à un joueur qui n'en a aucune.
|
||||
// À appeler dans une transaction.
|
||||
grantStarterDestination(playerId) {
|
||||
const editions = this.destinationCardEditions({ expeditionOnly: true });
|
||||
if (!editions.length) return;
|
||||
if (this.db.prepare("SELECT 1 FROM audit_log WHERE player_id = ? AND event_type = 'destination_starter' LIMIT 1").get(playerId)) return;
|
||||
const owned = this.ownedCardIds(playerId);
|
||||
if (this.destinationCardEditions().some((edition) => owned.has(edition.cardId))) return;
|
||||
const edition = editions[this.random(editions.length)];
|
||||
this.cards.addCard(playerId, edition.id);
|
||||
this.cards.audit(playerId, "destination_starter", edition.cardId, { editionId: edition.id });
|
||||
}
|
||||
|
||||
// Éditions standard des cartes des Carnets (rare ou mieux) déjà illustrées ; sans `cardIds`, toutes celles des collections des Expéditions.
|
||||
logbookEditions(cardIds = null) {
|
||||
const expeditionCollections = new Set(this.cards.catalog.collections.filter((collection) => collection.packCategory === "expedition").map((collection) => collection.id));
|
||||
return this.cards.catalog.editions.filter((edition) => {
|
||||
const card = this.cards.index.cards.get(edition.cardId);
|
||||
return card?.image && !edition.promotional && edition.rarity !== "mythic" && edition.rarity !== "common" && expeditionCollections.has(card.collectionId) && (!cardIds || cardIds.includes(card.id));
|
||||
return card?.image && card.kind !== "destination" && !edition.promotional && edition.rarity !== "mythic" && edition.rarity !== "common" && expeditionCollections.has(card.collectionId) && (!cardIds || cardIds.includes(card.id));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -324,7 +363,7 @@ export class ExpeditionService {
|
|||
if (busy) fail(409, "EXPEDITION_CARD_BUSY", "Cette carte est déjà en expédition.");
|
||||
if (this.activeCount(playerId, "solo") >= settings.solo.maxConcurrent) fail(409, "EXPEDITION_LIMIT", "Récupérez d’abord le butin de votre expédition en cours.");
|
||||
const now = this.now();
|
||||
const reward = this.rollReward(plan.expected, settings, { orientationPerSlot: plan.evaluation.stats.orientation / plan.slots.length, powers: plan.powers, destination: plan.resolved.destination });
|
||||
const reward = this.rollReward(plan.expected, settings, { orientationPerSlot: plan.evaluation.stats.orientation / plan.slots.length, powers: plan.powers, destination: plan.resolved.destination, playerId });
|
||||
const travel = travelHours(plan.hours, plan.powers, settings);
|
||||
const { destination } = plan.resolved;
|
||||
const setup = {
|
||||
|
|
@ -409,6 +448,7 @@ export class ExpeditionService {
|
|||
};
|
||||
// Fermées : le joueur peut encore récupérer le butin de ses expéditions, mais aucune destination n'est tirée.
|
||||
if (!settings.enabled) return { ...base, day: dailyDayKey(now), destinations: [], cards: [] };
|
||||
this.cards.database.transaction(() => this.grantStarterDestination(playerId));
|
||||
const { day, entries } = this.today(settings, playerId);
|
||||
// Progression : destinations débloquées par les cartes de destination, sur toutes les destinations visibles.
|
||||
const unlocked = { count: this.unlockedDestinationIds(playerId).size, total: this.destinations.filter((destination) => !destination.hidden).length };
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ export const DEFAULT_EXPEDITION_SETTINGS = Object.freeze({
|
|||
stormLanternDangerPct: 50, stormLanternExtraHours: 1, fogBellSynergyPct: 10, fogBellSoloLootPct: 20 },
|
||||
// Cartes des Carnets des Veilleurs rapportées d'expédition (chance par heure, multipliée comme le butin) et au plus par expédition.
|
||||
carnets: { cardPerHourPermille: 20, maxCards: 1 },
|
||||
// Cartes de destination : chance d'en rapporter une que le joueur n'a pas (Carnets des Veilleurs), et chance d'obtenir la carte
|
||||
// de la destination d'un groupe rejoint sans l'avoir. Une carte de destination de départ est offerte une fois.
|
||||
destinationCards: { dropPct: 10, groupJoinPct: 60 },
|
||||
items: {
|
||||
chancePerHourPermille: 50, maxPerExpedition: 2, orientationPerSlot: 15, fragmentsForMap: 4, hiddenLootPct: 150,
|
||||
weights: { fragment: 30, engraving: 10, plan: 10, anchor: 15, guideStar: 20, skyChart: 5 }
|
||||
|
|
@ -113,6 +116,8 @@ export const EXPEDITION_SETTINGS_SCHEMA = Object.freeze([
|
|||
int("powers.fogBellSoloLootPct", 0, 90),
|
||||
int("carnets.cardPerHourPermille", 0, 1000),
|
||||
int("carnets.maxCards", 0, 3),
|
||||
int("destinationCards.dropPct", 0, 100),
|
||||
int("destinationCards.groupJoinPct", 0, 100),
|
||||
int("items.chancePerHourPermille", 0, 1000),
|
||||
int("items.maxPerExpedition", 0, 5),
|
||||
int("items.orientationPerSlot", 0, 1000),
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ const ADMIN_HISTORY_PAGE_SIZE = 50;
|
|||
const PLAYER_HISTORY_EVENTS = Object.freeze([
|
||||
"welcome_opening", "pack_opened", "gift_pack_opened", "cards_recycled", "opening_purchased", "campaign_claimed",
|
||||
"trade_created", "trade_received", "trade_declined", "trade_joined", "trade_completed", "trade_cancelled",
|
||||
"gift_created", "gift_joined", "gift_completed", "gift_cancelled", "daily_won", "expedition_completed", "expedition_cancelled_by_guild", "expedition_dissolved", "card_upgraded", "eclats_converted", "item_used"
|
||||
"gift_created", "gift_joined", "gift_completed", "gift_cancelled", "daily_won", "expedition_completed", "expedition_cancelled_by_guild", "expedition_dissolved", "card_upgraded", "eclats_converted", "item_used", "destination_starter"
|
||||
]);
|
||||
const DEV_STARDUST = 1000;
|
||||
const DELETED_PLAYER_NAME = "Joueur supprimé";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ import { createDiscordAlertSender, dispatchAlerts } from "../services/cards/disc
|
|||
|
||||
const DEFAULT_GROUP = DEFAULT_EXPEDITION_SETTINGS.group;
|
||||
|
||||
const baseCatalog = prepareVersionedCatalog(JSON.parse(await readFile("website/public/data/cards/catalog.json", "utf8")));
|
||||
const rawCatalogText = await readFile("website/public/data/cards/catalog.json", "utf8");
|
||||
const baseCatalog = prepareVersionedCatalog(JSON.parse(rawCatalogText));
|
||||
const published = buildPublishedCatalog(baseCatalog, { collectionStates: INITIAL_COLLECTION_STATES, dropRates: INITIAL_DROP_RATES });
|
||||
const HOUR = 3_600_000;
|
||||
const rarityOf = (cardId) => published.editions.find((edition) => edition.cardId === cardId && !edition.promotional).rarity;
|
||||
|
|
@ -22,10 +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 } = {}) {
|
||||
function expeditionService({ start = Date.parse("2026-11-15T09:00:00Z"), random = () => 0, catalog = baseCatalog } = {}) {
|
||||
const clock = { now: start };
|
||||
const database = new CardsDatabase(":memory:");
|
||||
const service = new CardsService({ database, catalog: baseCatalog, now: () => clock.now, random });
|
||||
const service = new CardsService({ database, catalog, now: () => clock.now, random });
|
||||
const admin = service.upsertPlayer({ discordId: "expedition-admin", displayName: "Admin", isAdmin: true });
|
||||
const player = service.upsertPlayer({ discordId: "expedition-player", displayName: "Player" });
|
||||
const open = (changes = {}) => service.expeditions.updateSettings(admin.id, { ...service.expeditions.settings, enabled: true, ...changes });
|
||||
|
|
@ -87,6 +88,52 @@ test("each player draws the day among the destinations their cards unlock", () =
|
|||
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-"));
|
||||
|
||||
// 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 });
|
||||
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"]);
|
||||
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.
|
||||
const view = service.expeditions.getExpeditions(player.id);
|
||||
const destination = view.destinations.find((item) => item.id === "light-currents");
|
||||
const [mainRole, secondRole] = destination.groupRoles;
|
||||
const created = service.expeditions.createGroup(player.id, { mode: "group", day: view.day, destinationId: destination.id, durationHours: 2, editionId: rares[0], role: mainRole }, "dest-group");
|
||||
const groupId = created.expeditions.groups[0].id;
|
||||
// Le second joueur a déjà reçu sa carte de départ, une autre : il n'a pas celle des Courants.
|
||||
database.db.prepare("INSERT INTO audit_log(player_id, event_type, entity_id, details_json, created_at) VALUES (?, 'destination_starter', 'other', '{}', 0)").run(second.id);
|
||||
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"]);
|
||||
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.deepEqual(service.expeditions.rollDestinationCards(player.id, { id: "light-currents" }, service.expeditions.settings, { group: true, random: () => 0 }), []);
|
||||
});
|
||||
|
||||
test("a solo expedition freezes its team, hides its result until it returns and pays once", () => {
|
||||
const { clock, service, player, open, rares, database } = expeditionService();
|
||||
open();
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@
|
|||
"nextDay": "Nouvelles destinations dans {time}.",
|
||||
"noDestination": "Aucune destination n’est proposée aujourd’hui.",
|
||||
"destinationsTitle": "1. Destination du jour",
|
||||
"unlockedDestinations": "{count} destinations débloquées sur {total}. Les autres s’ouvrent avec leur carte de destination.",
|
||||
"unlockedDestinations": "{count} destinations débloquées sur {total}. Les autres s’ouvrent avec leur carte de destination : rapportez-la d’expédition, ou rejoignez un groupe qui y part.",
|
||||
"difficultyTitle": "2. Durée et exigences",
|
||||
"starsLabel": "Difficulté : {stars}",
|
||||
"durationLabel": "Durée",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ const EVENT_LABELS = {
|
|||
expedition_dissolved: "Groupe d’expédition dissous",
|
||||
card_upgraded: "Carte améliorée",
|
||||
eclats_converted: "Éclats d’étoile obtenus",
|
||||
item_used: "Objet utilisé"
|
||||
item_used: "Objet utilisé",
|
||||
destination_starter: "Carte de destination offerte"
|
||||
};
|
||||
|
||||
// Le journal garde la quantité réellement offerte : les comptes plus anciens n'ont reçu qu'une ouverture.
|
||||
|
|
@ -72,6 +73,7 @@ function HistoryDetail({ entry, catalog }) {
|
|||
const detail = details.destinationName ? `${details.destinationName}${details.recalledPct != null ? ` · rappel à ${details.recalledPct} %` : ""}` : details.tag ? `${cardReference(details.editionId, catalog)} · étiquette gravée` : "";
|
||||
return <span>{[name, detail].filter(Boolean).join(" · ")}</span>;
|
||||
}
|
||||
if (entry.type === "destination_starter") return <span>{cardReference(details.editionId, catalog)} · par la Guilde des Veilleurs</span>;
|
||||
if (entry.type === "eclats_converted") return <span>+{details.eclats} Éclats · −{formatStardust(details.stardust)} d’étoiles</span>;
|
||||
if (entry.type === "opening_purchased") return <span>{details.count > 1 && `${details.count} ouvertures · `}−{formatStardust(details.stardust ?? details.price)} d’étoiles</span>;
|
||||
if (!details.collectionId) return null;
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ export const EXPEDITION_SETTING_GROUPS = [
|
|||
{
|
||||
id: "powers",
|
||||
title: "Pouvoirs et Carnets des Veilleurs",
|
||||
help: "Avantage et contrepartie de chaque pouvoir des communes des Carnets (chaque pouvoir compte une fois par équipe), et chance de rapporter une carte des Carnets.",
|
||||
help: "Avantage et contrepartie de chaque pouvoir des communes des Carnets (chaque pouvoir compte une fois par équipe), chance de rapporter une carte des Carnets, et cartes de destination (une non possédée par expédition, celle de la destination d’un groupe rejoint sans l’avoir).",
|
||||
fields: [
|
||||
{ path: "powers.longsightPackPct", label: "Longue-vue : chance de paquet en plus", unit: "%" },
|
||||
{ path: "powers.longsightExtraHours", label: "Longue-vue : trajet en plus", unit: "h" },
|
||||
|
|
@ -118,7 +118,9 @@ export const EXPEDITION_SETTING_GROUPS = [
|
|||
{ path: "powers.fogBellSynergyPct", label: "Cloche de brume : synergie en plus, en groupe", unit: "%" },
|
||||
{ path: "powers.fogBellSoloLootPct", label: "Cloche de brume : butin en moins, en solo", unit: "%" },
|
||||
{ path: "carnets.cardPerHourPermille", label: "Chance d’une carte des Carnets par heure", unit: "‰" },
|
||||
{ path: "carnets.maxCards", label: "Cartes des Carnets au plus par expédition" }
|
||||
{ path: "carnets.maxCards", label: "Cartes des Carnets au plus par expédition" },
|
||||
{ path: "destinationCards.dropPct", label: "Chance d’une carte de destination non possédée", unit: "%" },
|
||||
{ path: "destinationCards.groupJoinPct", label: "Groupe rejoint : chance d’obtenir la carte de sa destination", unit: "%" }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue