Add the rules, storage and API of the daily team and its race
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
880f007cce
commit
71cf739a2e
23 changed files with 1703 additions and 15 deletions
|
|
@ -14,7 +14,7 @@ export function expeditionsPending(summary, now = Date.now()) {
|
|||
// Les Expéditions n'apparaissent que si elles sont ouvertes, ou tant qu'une expédition du joueur n'est pas terminée.
|
||||
export function guildQuests(state, now = Date.now()) {
|
||||
const quests = [];
|
||||
if (state.daily) quests.push({ id: "daily", pending: state.daily.status === "playing", summary: state.daily });
|
||||
if (state.daily) quests.push({ id: "daily", pending: state.daily.status === "playing" || Boolean(state.daily.rewardPending), summary: state.daily });
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue