Rename mirror swaps to moves and give each helper its own kind of help
On screen, a swap is now a move. The five helps no longer all save a move: Bravery frees the next move from the row or column rule, Orientation shows where a chosen piece goes, Fortune doubles the reward of a rebuilt picture, Endurance takes back the last move and Balanced shows the model for five seconds. The model is visible until the first move only: the server no longer sends it afterwards, except during that help and at the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9cf48ea0d0
commit
ddb3b81278
14 changed files with 152 additions and 99 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// Rôle : règle le Miroir brisé depuis Administration › Guilde : ouverture, suivi du jour (illustration du Difficile, parties,
|
||||
// poussière versée), gains et marges d'échanges. Ses règles de jeu restent dans mirror-rules.js.
|
||||
// poussière versée), gains et marges de mouvements. Ses règles de jeu restent dans mirror-rules.js.
|
||||
import { useState } from "react";
|
||||
import { ConfirmModal } from "../../../components/ToolboxModals.jsx";
|
||||
import { updateMirrorSettings } from "../cardsApi.js";
|
||||
|
|
@ -11,16 +11,16 @@ 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 échange restant. Une partie perdue ne rapporte rien. Repères : la Carte du jour rapporte 20 en production, la Course 20 à 5.",
|
||||
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.normal.base", label: "Normal, base", min: 0, max: 100_000 },
|
||||
{ path: "rewards.normal.perSwap", label: "Normal, par échange restant", 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 },
|
||||
{ path: "rewards.hard.perSwap", label: "Difficile, par échange restant", min: 0, max: 100_000 }
|
||||
{ path: "rewards.hard.perSwap", label: "Difficile, par mouvement restant", min: 0, max: 100_000 }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "mirror-margins", title: "Marges d’échanges", help: "Échanges 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à 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.",
|
||||
fields: [
|
||||
{ path: "margins.normal", label: "Normal", min: 0, max: 30 },
|
||||
{ path: "margins.hard", label: "Difficile", min: 0, max: 30 }
|
||||
|
|
@ -47,7 +47,7 @@ function MirrorStatus({ settings, today, catalog, busy, onToggle }) {
|
|||
</div>
|
||||
<dl className="nebula-admin-race-figures">
|
||||
{Object.entries(today.games).map(([mode, games]) => <div key={mode}><dt>{MODE_LABELS[mode]}</dt><dd>{games.started ? `${number(games.started)} partie${games.started > 1 ? "s" : ""} · ${number(games.won)} gagnée${games.won > 1 ? "s" : ""} · ${number(games.lost)} perdue${games.lost > 1 ? "s" : ""}` : "Aucune partie."}</dd></div>)}
|
||||
<div><dt>Difficile du jour</dt><dd>{today.hard ? `${hardCard?.name || today.hard.cardId} · ordinateur : ${today.hard.par} échanges` : "Tiré à la première partie du jour."}</dd></div>
|
||||
<div><dt>Difficile du jour</dt><dd>{today.hard ? `${hardCard?.name || today.hard.cardId} · ordinateur : ${today.hard.par} mouvements` : "Tiré à la première partie du jour."}</dd></div>
|
||||
</dl>
|
||||
{confirming && <ConfirmModal
|
||||
title={open ? "Fermer le Miroir brisé ?" : "Ouvrir le Miroir brisé ?"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue