feat: implémente 'Puiser dans ses ressources'
Règle : le joueur peut ignorer tous les malus actifs contre une case de Spleen. - roll.mjs : checkbox puiserRessources ; ignore woundMalus, modifier négatif et aspectMod négatif ; incrémente system.spleen.lvl +1 après le jet - roll-dialog.hbs : bloc rouge foncé visible si woundMalus < 0 ; preview mis à jour - chat-message.hbs : bandeau '💪 Ressources puisées' si utilisé - roll.less : .form-puiser-row, .used-info.used-puiser - lang/fr.json : Roll.puiser/puiserDesc/usedPuiser Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -285,6 +285,78 @@
|
||||
|
||||
.form-visibility label { color: #888; }
|
||||
|
||||
// ── Ligne Puiser dans ses ressources ──
|
||||
.form-puiser-row {
|
||||
border: 1px solid rgba(139,62,72,0.4);
|
||||
border-radius: 4px;
|
||||
background: rgba(107,30,40,0.06);
|
||||
padding: 7px 10px;
|
||||
|
||||
.puiser-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
|
||||
input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
border: 2px solid rgba(139,62,72,0.6);
|
||||
border-radius: 2px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&:checked {
|
||||
background: var(--cel-accent, #6b1e28);
|
||||
border-color: var(--cel-accent, #6b1e28);
|
||||
&::after {
|
||||
content: "✓";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.75em;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.puiser-icon { font-size: 1em; flex-shrink: 0; }
|
||||
|
||||
.puiser-text {
|
||||
flex: 1;
|
||||
.puiser-main {
|
||||
font-family: var(--cel-font-title, "CopaseticNF", serif);
|
||||
font-size: 0.9em;
|
||||
color: var(--cel-accent, #6b1e28);
|
||||
display: block;
|
||||
}
|
||||
.puiser-sub {
|
||||
font-size: 0.7em;
|
||||
color: #888;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
.puiser-cost {
|
||||
font-size: 0.8em;
|
||||
font-weight: bold;
|
||||
color: var(--cel-accent, #6b1e28);
|
||||
background: rgba(107,30,40,0.1);
|
||||
border: 1px solid rgba(139,62,72,0.35);
|
||||
border-radius: 10px;
|
||||
padding: 1px 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ── Ligne Fortune ──
|
||||
.form-fortune-row {
|
||||
border: 1px solid rgba(12,76,12,0.4);
|
||||
@@ -567,6 +639,13 @@
|
||||
.used-fortune { font-weight: bold; color: var(--cel-green, #0c4c0c); }
|
||||
}
|
||||
|
||||
.used-info.used-puiser {
|
||||
color: var(--cel-accent, #6b1e28);
|
||||
background: rgba(107,30,40,0.08);
|
||||
border-top-color: rgba(139,62,72,0.3);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// ── Fortune fixe badge dans zone dés ──
|
||||
.fortune-fixed-badge {
|
||||
display: inline-flex;
|
||||
|
||||
Reference in New Issue
Block a user