Add adversité total malus display

Show 'MALUS JETS -X' below adversité cards. Highlights in red when non-zero.
Value = bleue + rouge + noire (same as nbAdversites used in roll formula).
Tooltip explains it's subtracted from all rolls.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-03 08:15:30 +02:00
parent 21c3c5b88b
commit e67ecd9238
3 changed files with 89 additions and 0 deletions

View File

@@ -923,6 +923,50 @@
}
}
.adversite-total {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 6px;
padding: 4px 8px;
border-radius: 3px;
border: 1px solid rgba(100,70,20,0.35);
background: rgba(15,8,0,0.5);
cursor: default;
transition: all 0.2s;
&.adversite-total-nonzero {
border-color: rgba(200,60,30,0.6);
background: rgba(40,8,4,0.7);
box-shadow: 0 0 8px rgba(200,50,20,0.2);
.adversite-total-value {
color: #ff7755;
text-shadow: 0 0 8px rgba(255,80,40,0.5);
}
}
.adversite-total-label {
font-size: 0.6rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.8px;
color: #9a7a50;
}
.adversite-total-value {
font-family: "Signika", "Arial Narrow", sans-serif;
font-variant-numeric: lining-nums tabular-nums;
font-size: 1.1rem;
font-weight: 900;
color: #c0a070;
line-height: 1;
transition: color 0.2s;
}
}
.adversite-modifiers {
display: flex;
flex-direction: row;