Add an Easy mirror before Normal and let every companion help
Easy is a square 4 x 4 picture drawn for each player, with green outlines, where any two pieces swap; it is scored against the free minimum and pays 5 plus 1 per move left. The three mirrors open one after another (Easy, Normal, Hard) and the Guild quest is done with all three. Migration 31 rebuilds mirror_games to accept the new mode. The mirror page shows three illustrated cards, Easy painted with Codex. Bravery now places a misplaced piece for free, since swapping anywhere means nothing in Easy. Each of the five companions can help once per game instead of two in all. Mirror styles now win over the global button hover, so placed pieces keep their green outline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4321559831
commit
ebb220d532
18 changed files with 276 additions and 146 deletions
|
|
@ -22,7 +22,7 @@ export function guildQuests(state, now = Date.now()) {
|
|||
if (team && ((team.raceEnabled && team.status === "ready") || team.race === "running")) quests.push({ id: "race", pending: team.race !== "finished", summary: team });
|
||||
// Le Miroir brisé n'apparaît que s'il est ouvert, ou tant qu'une partie du jour n'est pas terminée.
|
||||
const mirror = state.mirror;
|
||||
if (mirror && (mirror.enabled || mirror.normal === "playing" || mirror.hard === "playing")) quests.push({ id: "mirror", pending: !mirrorDone(mirror), summary: mirror });
|
||||
if (mirror && (mirror.enabled || ["easy", "normal", "hard"].some((mode) => mirror[mode] === "playing"))) quests.push({ id: "mirror", pending: !mirrorDone(mirror), summary: mirror });
|
||||
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;
|
||||
|
|
@ -30,9 +30,9 @@ export function guildQuests(state, now = Date.now()) {
|
|||
|
||||
export const pendingQuestCount = (state) => guildQuests(state).filter((quest) => quest.pending).length;
|
||||
|
||||
// Miroir brisé terminé : le Normal puis le Difficile joués jusqu'au bout, gagnés ou non.
|
||||
// Miroir brisé terminé : le Facile, le Normal puis le Difficile joués jusqu'au bout, gagnés ou non.
|
||||
const finishedGame = (status) => status === "won" || status === "lost";
|
||||
export const mirrorDone = (mirror) => finishedGame(mirror.normal) && finishedGame(mirror.hard);
|
||||
export const mirrorDone = (mirror) => ["easy", "normal", "hard"].every((mode) => finishedGame(mirror[mode]));
|
||||
|
||||
// Quête quotidienne terminée aujourd'hui.
|
||||
export function questDone({ id, summary }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue