feat: affichage des Traits des armes dans le message de jet en tchat

- templates/roll-message.hbs : ligne Traits dans le bloc arme (nom + valeur)
  avec description en infobulle au survol
- less/base.less : style .weapon-traits / .weapon-trait (badges lisibles)
This commit is contained in:
2026-08-06 23:08:54 +02:00
parent ca74ff4a88
commit 06603ceff7
2 changed files with 36 additions and 0 deletions
+24
View File
@@ -833,6 +833,30 @@ ol.chat-log {
}
}
}
.weapon-traits {
gap: 4px 6px;
margin-top: 4px;
padding-top: 4px;
border-top: 1px dashed fade(@color-hemolymph, 35%);
align-items: center;
.weapon-traits-label {
flex: none;
}
.weapon-trait {
flex: none;
font-family: "Roboto", sans-serif;
font-size: @font-size-11;
font-weight: 600;
padding: 1px 6px;
border: 1px solid @color-border-dark-4;
border-radius: 3px;
background: fade(@color-acid-green, 10%);
cursor: help;
}
}
}
// ── Échange de coups ─────────────────────────────────────────────
+12
View File
@@ -36,6 +36,18 @@
{{param.weapon.system.ammo}}
</span>
</div>
{{#if param.weapon.system.traits}}
<div class="flexrow flex-wrap weapon-traits">
<span class="weapon-detail weapon-traits-label">
<strong>{{localize "VERMINE.traits"}}:</strong>
</span>
{{#each param.weapon.system.traits as |trait key|}}
{{#if trait}}
<span class="weapon-trait" data-tooltip="{{trait.description}}">{{trait.name}}{{#if trait.value}} ({{trait.value}}){{/if}}</span>
{{/if}}
{{/each}}
</div>
{{/if}}
</div>
{{/if}}