Add the recruitment screen of the daily team

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-25 21:45:37 +01:00
parent 71cf739a2e
commit 08c3c8f6a2
18 changed files with 654 additions and 3 deletions

View file

@ -15,6 +15,9 @@ export function expeditionsPending(summary, now = Date.now()) {
export function guildQuests(state, now = Date.now()) {
const quests = [];
if (state.daily) quests.push({ id: "daily", pending: state.daily.status === "playing" || Boolean(state.daily.rewardPending), summary: state.daily });
// L'Équipe du jour n'apparaît que si elle est ouverte, ou tant qu'un recrutement n'est pas terminé.
const team = state.team;
if (team && (team.enabled || team.status === "recruiting")) quests.push({ id: "team", pending: team.status !== "ready", summary: team });
const expeditions = state.expeditions;
if (expeditions && (expeditions.enabled || expeditions.running || expeditions.returned || expeditions.forming)) quests.push({ id: "expeditions", pending: expeditionsPending(expeditions, now), summary: expeditions });
return quests;