Add an Easy mirror before Normal and let every companion help
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 23m41s
Validate and deploy Sokko G / deploy (push) Successful in 16s

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:
Shinuwa 2026-11-28 18:27:02 +01:00
parent 4321559831
commit ebb220d532
18 changed files with 276 additions and 146 deletions

View file

@ -6,13 +6,15 @@ import { updateMirrorSettings } from "../cardsApi.js";
import { ApplyBar, SettingsGroup } from "./SettingFields.jsx";
import { useSettingsDraft, writePath } from "./settingsDraft.js";
const MODE_LABELS = { normal: "Normal", hard: "Difficile" };
const MODE_LABELS = { easy: "Facile", normal: "Normal", hard: "Difficile" };
const number = (value) => value.toLocaleString("fr-FR");
const MIRROR_SETTING_GROUPS = [
{
id: "mirror-rewards", title: "Gains", help: "En poussière d’étoiles, pour une image reconstituée : la base, plus une part par mouvement restant. Une partie perdue ne rapporte rien. Repères : la Carte du jour rapporte 20 en production, la Course 20 à 5.",
fields: [
{ path: "rewards.easy.base", label: "Facile, base", min: 0, max: 100_000 },
{ path: "rewards.easy.perSwap", label: "Facile, par mouvement restant", min: 0, max: 100_000 },
{ path: "rewards.normal.base", label: "Normal, base", min: 0, max: 100_000 },
{ path: "rewards.normal.perSwap", label: "Normal, par mouvement restant", min: 0, max: 100_000 },
{ path: "rewards.hard.base", label: "Difficile, base", min: 0, max: 100_000 },
@ -20,8 +22,9 @@ const MIRROR_SETTING_GROUPS = [
]
},
{
id: "mirror-margins", title: "Marges de mouvements", help: "Mouvements permis au-delà du meilleur résultat trouvé par l’ordinateur. En Normal, avec 3, un joueur attentif réussit environ 9 fois sur 10 (simulation). Une partie commencée garde sa limite.",
id: "mirror-margins", title: "Marges de mouvements", help: "Mouvements permis au-delà de la référence : le minimum en Facile (échanges libres), le meilleur résultat trouvé par l’ordinateur en Normal et en Difficile. En Normal, avec 3, un joueur attentif réussit environ 9 fois sur 10 (simulation). Une partie commencée garde sa limite.",
fields: [
{ path: "margins.easy", label: "Facile", min: 0, max: 30 },
{ path: "margins.normal", label: "Normal", min: 0, max: 30 },
{ path: "margins.hard", label: "Difficile", min: 0, max: 30 }
]