Add the Guilde des Veilleurs and its daily guess-the-card quest to Sokko TCG
- La Carte du jour: one zoomed card shared by all players each Paris day, six guesses with collection and rarity hints, a fixed stardust reward and an emoji result to share. - The Guilde des Veilleurs lists the quests, with a menu entry, a home banner and an admin section for quest settings. - The section menu folds into a dropdown below 960 px; the home pairs the guild with the best pull and moves the opening reserve under the menu. - The shop pack share moves to the shop collection admin page, which recalls where the pack draws its cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ecc2040352
commit
0ef213cf4f
37 changed files with 1532 additions and 127 deletions
11
website/src/features/cards/guildQuests.js
Normal file
11
website/src/features/cards/guildQuests.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Rôle : recense les quêtes que la Guilde des Veilleurs propose au joueur et celles qui l'attendent.
|
||||
// La Carte du jour est la première ; chaque nouvelle quête (Expéditions…) s'ajoute à cette liste avec sa tuile dans GuildPanel.
|
||||
|
||||
// Une quête : identifiant (qui choisit sa tuile), état du jour fourni par le serveur et `pending` tant qu'elle attend le joueur.
|
||||
export function guildQuests(state) {
|
||||
const quests = [];
|
||||
if (state.daily) quests.push({ id: "daily", pending: state.daily.status === "playing", summary: state.daily });
|
||||
return quests;
|
||||
}
|
||||
|
||||
export const pendingQuestCount = (state) => guildQuests(state).filter((quest) => quest.pending).length;
|
||||
Loading…
Add table
Add a link
Reference in a new issue