Add solo Expeditions, the second Guilde des Veilleurs quest of Sokko TCG
- Every catalog card carries expedition tags and every collection a stat profile, validated at load; twelve destinations live server-side so hidden ones stay secret. - Pure rules compute card power, per-slot requirements, roles, dangers, the long-trip malus, the score (one more star never raises it) and loot proportional to the chosen duration. - A simulator script and a balance test guard the design thresholds; agent docs and a new-card skill explain how to tag new cards. - Migration 8 adds Éclats d'étoile, expedition settings stored as one validated JSON, daily destinations, expeditions, members and slots, and rebuilds gift_packs so a pack can come from an expedition. - Players launch a solo expedition from the Guild, see an exact preview, and claim their loot when it returns; the card sheet shows cards away on an expedition. - Administration › Guilde tunes every value with server-side bounds, toggles destinations and cancels running expeditions; expeditions stay closed until an administrator opens them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0ef213cf4f
commit
8bb1d53d70
46 changed files with 4752 additions and 213 deletions
|
|
@ -166,3 +166,28 @@ export function loadCampaignDetail(campaignId) {
|
|||
export function extendCampaign(campaignId, expiresAt) {
|
||||
return request(`/admin/campaigns/${encodeURIComponent(campaignId)}/expiry`, { method: "PUT", body: JSON.stringify({ expiresAt }) });
|
||||
}
|
||||
|
||||
export function loadExpeditions() {
|
||||
return request("/expeditions");
|
||||
}
|
||||
|
||||
// Aperçu exact d'une équipe : le palier ne dépend d'aucun tirage, seul le butin est arrondi au hasard au départ.
|
||||
export function previewExpedition(body) {
|
||||
return request("/expeditions/preview", { method: "POST", body: JSON.stringify(body) });
|
||||
}
|
||||
|
||||
export function startExpedition(body) {
|
||||
return request("/expeditions", { method: "POST", headers: { "Idempotency-Key": crypto.randomUUID() }, body: JSON.stringify(body) });
|
||||
}
|
||||
|
||||
export function claimExpedition(expeditionId) {
|
||||
return request(`/expeditions/${encodeURIComponent(expeditionId)}/claim`, { method: "POST" });
|
||||
}
|
||||
|
||||
export function updateExpeditionSettings(settings) {
|
||||
return request("/admin/expeditions/settings", { method: "PUT", body: JSON.stringify({ settings }) });
|
||||
}
|
||||
|
||||
export function cancelExpedition(expeditionId) {
|
||||
return request(`/admin/expeditions/${encodeURIComponent(expeditionId)}/cancel`, { method: "POST" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue