diff --git a/less/base.less b/less/base.less index 52bbd99..22f1ba7 100644 --- a/less/base.less +++ b/less/base.less @@ -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 ───────────────────────────────────────────── diff --git a/templates/roll-message.hbs b/templates/roll-message.hbs index b9375d7..0562be9 100644 --- a/templates/roll-message.hbs +++ b/templates/roll-message.hbs @@ -36,6 +36,18 @@ {{param.weapon.system.ammo}} + {{#if param.weapon.system.traits}} +
+ + {{localize "VERMINE.traits"}}: + + {{#each param.weapon.system.traits as |trait key|}} + {{#if trait}} + {{trait.name}}{{#if trait.value}} ({{trait.value}}){{/if}} + {{/if}} + {{/each}} +
+ {{/if}} {{/if}}