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:
@@ -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 {
|
.adversite-modifiers {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
@@ -3210,6 +3210,45 @@ li {
|
|||||||
color: #99ffaa;
|
color: #99ffaa;
|
||||||
border-color: rgba(40, 160, 60, 0.5);
|
border-color: rgba(40, 160, 60, 0.5);
|
||||||
}
|
}
|
||||||
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .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;
|
||||||
|
}
|
||||||
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-total.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);
|
||||||
|
}
|
||||||
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-total.adversite-total-nonzero .adversite-total-value {
|
||||||
|
color: #ff7755;
|
||||||
|
text-shadow: 0 0 8px rgba(255, 80, 40, 0.5);
|
||||||
|
}
|
||||||
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-total .adversite-total-label {
|
||||||
|
font-size: 0.6rem;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.8px;
|
||||||
|
color: #9a7a50;
|
||||||
|
}
|
||||||
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-total .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;
|
||||||
|
}
|
||||||
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-modifiers {
|
.fvtt-mournblade-cyd-2-0.actor .adversite-section .adversite-modifiers {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|||||||
@@ -170,6 +170,12 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="adversite-total {{#if adversiteTotal}}adversite-total-nonzero{{/if}}"
|
||||||
|
data-tooltip="Malus soustrait à tous les jets de dés">
|
||||||
|
<span class="adversite-total-label">Malus jets</span>
|
||||||
|
<span class="adversite-total-value">−{{adversiteTotal}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#if isGM}}
|
{{#if isGM}}
|
||||||
<div class="adversite-modifiers">
|
<div class="adversite-modifiers">
|
||||||
<div class="adversite-modifier-row">
|
<div class="adversite-modifier-row">
|
||||||
|
|||||||
Reference in New Issue
Block a user