116 lines
3.0 KiB
Handlebars
116 lines
3.0 KiB
Handlebars
<div class="malefices-chat-card malefices-chat-item" data-transfer="{{jsondata}}">
|
|
|
|
<header class="chat-card-header">
|
|
{{#if img}}
|
|
<img class="chat-actor-img" src="{{img}}" alt="{{name}}" />
|
|
{{/if}}
|
|
<div class="chat-actor-name">{{name}}</div>
|
|
<div class="item-type-label">
|
|
{{#if (eq type "arme")}}Arme{{/if}}
|
|
{{#if (eq type "equipement")}}Équipement{{/if}}
|
|
{{#if (eq type "sortilege")}}Sortilège{{/if}}
|
|
{{#if (eq type "archetype")}}Archétype{{/if}}
|
|
{{#if (eq type "tarot")}}Lame de Tarot{{/if}}
|
|
{{#if (eq type "elementbio")}}Élément Biographique{{/if}}
|
|
</div>
|
|
</header>
|
|
|
|
<div class="chat-card-separator"></div>
|
|
|
|
{{!-- Arme --}}
|
|
{{#if (eq type "arme")}}
|
|
<dl class="chat-roll-details">
|
|
{{#if system.armetype}}
|
|
<div class="chat-detail-row">
|
|
<dt>Type</dt>
|
|
<dd>{{lookup config.armeTypes system.armetype}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
{{#if system.porteecourte}}
|
|
<div class="chat-detail-row">
|
|
<dt>Portée courte</dt>
|
|
<dd>{{system.porteecourte}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
{{#if system.porteemoyenne}}
|
|
<div class="chat-detail-row">
|
|
<dt>Portée moyenne</dt>
|
|
<dd>{{system.porteemoyenne}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
<div class="chat-detail-row">
|
|
<dt>Dommages (normale)</dt>
|
|
<dd class="item-damage">{{system.dommagenormale}}</dd>
|
|
</div>
|
|
<div class="chat-detail-row">
|
|
<dt>Dommages (part.)</dt>
|
|
<dd class="item-damage">{{system.dommagepart}}</dd>
|
|
</div>
|
|
<div class="chat-detail-row">
|
|
<dt>Dommages (critique)</dt>
|
|
<dd class="item-damage item-damage-crit">
|
|
{{#if system.dommagecritiquemort}}
|
|
Mort instantanée
|
|
{{else if system.dommagecritiqueKO}}
|
|
{{system.dommagecritique}} — KO
|
|
{{else}}
|
|
{{system.dommagecritique}}
|
|
{{/if}}
|
|
</dd>
|
|
</div>
|
|
</dl>
|
|
{{/if}}
|
|
|
|
{{!-- Sortilège --}}
|
|
{{#if (eq type "sortilege")}}
|
|
<dl class="chat-roll-details">
|
|
<div class="chat-detail-row chat-detail-target">
|
|
<dt>Seuil d'activation</dt>
|
|
<dd>{{system.seuil}}</dd>
|
|
</div>
|
|
</dl>
|
|
{{/if}}
|
|
|
|
{{!-- Archétype --}}
|
|
{{#if (eq type "archetype")}}
|
|
<dl class="chat-roll-details">
|
|
{{#if system.lametutelaire}}
|
|
<div class="chat-detail-row">
|
|
<dt>Lame tutélaire</dt>
|
|
<dd>{{system.lametutelaire}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
</dl>
|
|
{{/if}}
|
|
|
|
{{!-- Tarot --}}
|
|
{{#if (eq type "tarot")}}
|
|
<dl class="chat-roll-details">
|
|
{{#if system.tarottype}}
|
|
<div class="chat-detail-row">
|
|
<dt>Arcane</dt>
|
|
<dd>{{lookup config.tarotType system.tarottype}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
<div class="chat-detail-row">
|
|
<dt>Valeur (endroit)</dt>
|
|
<dd>{{system.numericvalueup}}</dd>
|
|
</div>
|
|
{{#if system.isdualside}}
|
|
<div class="chat-detail-row">
|
|
<dt>Valeur (renversé)</dt>
|
|
<dd>{{system.numericvaluedown}}</dd>
|
|
</div>
|
|
{{/if}}
|
|
</dl>
|
|
{{/if}}
|
|
|
|
{{!-- Description --}}
|
|
{{#if system.description}}
|
|
<div class="chat-item-description">
|
|
{{{system.description}}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
</div>
|