Refonte complète du système Anomalies
- DataModel : renommage value→level (1-4), ajout usesRemaining (0-4), suppression scores/notes - Config : ajout ANOMALY_DEFINITIONS avec compétences applicables par type (8 anomalies) - Fiche item anomalie : header avec level/uses visuels (dots), barre de compétences applicables, 2 onglets Description + Technique/Narratif (suppression onglet Scores) - Fiche PJ onglet Domaines : bloc anomalie proéminent unique avec: - Nom + sous-type + icône - Dots niveau (●●○○) - Dots usages + bouton Utiliser + bouton Réinitialiser - Chips des domaines applicables - Actions : useAnomaly (décrémente usesRemaining), resetAnomalyUses (reset au niveau) - Contrainte : max 1 anomalie par personnage (drop + createAnomaly) - Helpers HBS : lte, gte, lt ajoutés - i18n : nouvelles clés Anomaly.* (level, usesRemaining, use, resetUses, etc.) - CSS : .anomaly-block sur fiche PJ, dots animés, .anomaly-uses-row sur fiche item Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -165,6 +165,90 @@
|
||||
}
|
||||
}
|
||||
|
||||
// ── Anomaly-specific styles ───────────────────────────────────────────────
|
||||
|
||||
&.anomaly {
|
||||
.anomaly-level-field {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
label { color: var(--cel-orange-light); font-size: 0.75em; text-transform: uppercase; }
|
||||
.level-input, .anomaly-level-value {
|
||||
width: 38px;
|
||||
background: transparent;
|
||||
border: 1px solid var(--cel-orange-light);
|
||||
color: var(--cel-orange);
|
||||
text-align: center;
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.anomaly-uses-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 5px;
|
||||
padding-top: 4px;
|
||||
border-top: 1px solid rgba(196,154,26,0.2);
|
||||
|
||||
.anomaly-uses-label {
|
||||
color: var(--cel-orange-light);
|
||||
font-size: 0.7em;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.anomaly-uses-dots { display: flex; gap: 4px; }
|
||||
|
||||
.uses-number-input {
|
||||
width: 34px;
|
||||
background: transparent;
|
||||
border: 1px solid rgba(196,154,26,0.4);
|
||||
color: var(--cel-orange);
|
||||
text-align: center;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
}
|
||||
|
||||
.anomaly-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--cel-orange);
|
||||
display: inline-block;
|
||||
&.available { background: var(--cel-orange); }
|
||||
&.spent { background: transparent; }
|
||||
&.inactive { background: transparent; border-color: rgba(196,154,26,0.25); }
|
||||
}
|
||||
|
||||
.anomaly-skills-bar {
|
||||
background: rgba(0,0,0,0.18);
|
||||
border-bottom: 1px solid rgba(196,154,26,0.2);
|
||||
padding: 5px 10px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
align-items: center;
|
||||
|
||||
.anomaly-skills-label {
|
||||
color: var(--cel-orange-light);
|
||||
font-size: 0.72em;
|
||||
text-transform: uppercase;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.anomaly-skill-chip {
|
||||
background: rgba(196,154,26,0.12);
|
||||
border: 1px solid rgba(196,154,26,0.35);
|
||||
border-radius: 3px;
|
||||
padding: 1px 6px;
|
||||
font-size: 0.72em;
|
||||
color: var(--cel-orange-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Equipment-specific
|
||||
&.equipment {
|
||||
.equipment-stats {
|
||||
|
||||
Reference in New Issue
Block a user