Add group Expeditions with a Guild board to Sokko TCG
- A player opens a group with one card and a chosen role; others join from the board with a free role, and the creator launches it once enough players are in. - At departure the Veilleur de la Guilde holds empty places without a role, each member rolls their own loot multiplied by the number of players, and distinct collections add a cohesion bonus. - An unlaunched group departs on its own at the end of recruitment with enough players, or dissolves and tells its members; leaving, dissolving and deleted accounts free cards or forfeit shares. - The Guild tile flags joinable groups; Administration › Guilde tunes group places, players, stars, recruitment, loot multipliers, keeper stats, cohesion and the score bonus cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8bb1d53d70
commit
6b7605d04e
24 changed files with 858 additions and 99 deletions
|
|
@ -23,8 +23,10 @@ export function dangerText(danger, catalog, content) {
|
|||
|
||||
// Statut de la tuile Expéditions dans la Guilde (textes cards.guild).
|
||||
export function expeditionQuestStatus(summary, content, now = Date.now()) {
|
||||
if (!summary.enabled && !summary.running && !summary.returned) return content.expeditionsClosed;
|
||||
if (!summary.enabled && !summary.running && !summary.returned && !summary.forming) return content.expeditionsClosed;
|
||||
if (summary.returned > 0 || (summary.nextReturnAt != null && summary.nextReturnAt <= now)) return content.expeditionsReturned;
|
||||
if (summary.joinableGroups > 0) return fillTemplate(content.expeditionsGroups, { count: summary.joinableGroups, s: summary.joinableGroups > 1 ? "s" : "" });
|
||||
if (summary.forming) return content.expeditionsForming;
|
||||
if (summary.running) return fillTemplate(content.expeditionsRunning, { time: formatCountdown(summary.nextReturnAt - now) });
|
||||
if (summary.eligible < summary.soloCards) return fillTemplate(content.expeditionsNoCards, { count: summary.soloCards });
|
||||
return summary.launchedToday ? content.expeditionsIdle : content.expeditionsToLaunch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue