feat: ajoute la règle Fortune dans les jets
Règle : si Fortune > 0, le joueur peut cocher 'Fortune' pour lancer 1d8 + 8 au lieu de 2d8 (contraint les probabilités vers le haut). - character.mjs : passe fortuneValue dans roll.prompt() - roll.mjs : checkbox Fortune, formule 1d8 + 8 + totalModifier si cochée - roll-dialog.hbs : bloc Fortune (visible si fortuneValue > 0), preview mis à jour - chat-message.hbs : affiche '+8' dans la zone dés, ligne formule avec badge Fortune - roll.less : styles .form-fortune-row, .fl-mod.fortune, .fortune-fixed-badge - lang/fr.json : Roll.fortune/fortuneBonus/fortuneFixed/usedFortune Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -285,6 +285,81 @@
|
||||
|
||||
.form-visibility label { color: #888; }
|
||||
|
||||
// ── Ligne Fortune ──
|
||||
.form-fortune-row {
|
||||
border: 1px solid rgba(12,76,12,0.4);
|
||||
border-radius: 4px;
|
||||
background: rgba(12,76,12,0.06);
|
||||
padding: 7px 10px;
|
||||
|
||||
.fortune-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 var(--cel-border, #7a5c20);
|
||||
border-radius: 2px;
|
||||
background: white;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
&:checked {
|
||||
background: var(--cel-green, #0c4c0c);
|
||||
border-color: var(--cel-green, #0c4c0c);
|
||||
&::after {
|
||||
content: "⚜";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.6em;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fortune-icon {
|
||||
font-size: 1.1em;
|
||||
color: var(--cel-green, #0c4c0c);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.fortune-text {
|
||||
flex: 1;
|
||||
.fortune-main {
|
||||
font-family: var(--cel-font-title, "CopaseticNF", serif);
|
||||
font-size: 0.9em;
|
||||
color: var(--cel-green, #0c4c0c);
|
||||
display: block;
|
||||
}
|
||||
.fortune-bonus {
|
||||
font-size: 0.72em;
|
||||
color: var(--cel-border, #7a5c20);
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
.fortune-badge {
|
||||
font-size: 0.8em;
|
||||
font-weight: bold;
|
||||
color: var(--cel-green, #0c4c0c);
|
||||
background: rgba(12,76,12,0.12);
|
||||
border: 1px solid rgba(12,76,12,0.3);
|
||||
border-radius: 10px;
|
||||
padding: 1px 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ── Prévisualisation ──
|
||||
.dice-preview {
|
||||
text-align: center;
|
||||
@@ -431,6 +506,8 @@
|
||||
line-height: 1;
|
||||
}
|
||||
.fl-mod { color: #444; font-weight: bold; }
|
||||
.fl-mod.fortune { color: var(--cel-green, #0c4c0c); font-weight: bold; }
|
||||
.fl-mod.wound { color: #922; }
|
||||
.fl-asp { color: var(--cel-orange, #e07b00); font-weight: bold; }
|
||||
.fl-sep { font-weight: bold; color: var(--cel-border, #7a5c20); margin: 0 2px; }
|
||||
.fl-eq { color: #aaa; }
|
||||
@@ -487,6 +564,22 @@
|
||||
border-top: 1px dashed var(--cel-border, #7a5c20);
|
||||
|
||||
.used-destin { font-weight: bold; }
|
||||
.used-fortune { font-weight: bold; color: var(--cel-green, #0c4c0c); }
|
||||
}
|
||||
|
||||
// ── Fortune fixe badge dans zone dés ──
|
||||
.fortune-fixed-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 4px;
|
||||
border: 2px solid var(--cel-green, #0c4c0c);
|
||||
background: rgba(12,76,12,0.1);
|
||||
color: var(--cel-green, #0c4c0c);
|
||||
font-weight: bold;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
// ── Résultat dé de lune ──
|
||||
|
||||
Reference in New Issue
Block a user