feat: page Achievements + soins renommé + bouton soins en combat
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 31s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 31s
Page /achievements : 20 succès groupés par catégorie (Combat, Progression, Économie, Équipement), progress bars, paliers bronze/silver/gold, bouton réclamer, compteur débloqués/total. Renommage "repos" → "soins" partout (dashboard, budget, messages). Bouton soins ajouté dans la page combat (accès rapide entre les fights). Icône Trophy dans la sidebar pour les succès.
This commit is contained in:
@@ -220,7 +220,7 @@ export function DashboardPage() {
|
||||
<span style={{ fontWeight: 700, color: '#5ba4f5' }}>⚡ Budget :</span>
|
||||
{' '}{Math.floor(endurance / COMBAT_COST)} combats
|
||||
{' · '}{Math.floor(endurance / FORGE_COST)} forges
|
||||
{' · '}{Math.floor(endurance / REST_COST)} repos
|
||||
{' · '}{Math.floor(endurance / REST_COST)} soins
|
||||
</div>
|
||||
|
||||
{needsHeal && (
|
||||
@@ -231,11 +231,11 @@ export function DashboardPage() {
|
||||
onClick={() => restMut.mutate()}
|
||||
>
|
||||
<BedDouble size={13} />
|
||||
{restMut.isPending ? 'Repos…' : `Se reposer (+50% PV, ${REST_COST}⚡)`}
|
||||
{restMut.isPending ? 'Soins…' : `Soins (+50% PV, ${REST_COST}⚡)`}
|
||||
</button>
|
||||
)}
|
||||
{needsHeal && !canRest && endurance < REST_COST && (
|
||||
<p style={{ fontSize: 10, color: '#e84040', textAlign: 'center', margin: '2px 0 0' }}>Endurance insuffisante pour se reposer</p>
|
||||
<p style={{ fontSize: 10, color: '#e84040', textAlign: 'center', margin: '2px 0 0' }}>Endurance insuffisante pour les soins</p>
|
||||
)}
|
||||
{restMut.isError && <p style={{ color: '#e84040', fontSize: 11, marginTop: 2 }}>{(restMut.error as Error).message}</p>}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user