Files
foundryvtt-reve-de-dragon/templates/roll/roll-part-tache.hbs

37 lines
1.4 KiB
Handlebars

<roll-part-img>
<img src="{{current.tache.img}}" data-tooltip="{{current.tache.name}}" />
</roll-part-img>
<roll-part-detail>
<subline>
<select name="select-tache" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.taches selected=current.key valueAttr="key" labelAttr="label"}}
</select>
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
{{#unless refs.forced}}
<button name="create-tache" data-tooltip="Créer une nouvelle tâche"><i class="fa-solid fa-circle-plus"></i></button>
{{#if refs.taches.length}}
<button name="edit-tache" data-tooltip="Modifier la tâche"><i class="fa-solid fa-edit"></i></button>
{{/if}}
{{/unless}}
</subline>
{{#if refs.taches.length}}
<subline>
Points de tâche: {{current.tache.system.points_de_tache_courant}} /
{{#if current.tache.system.cacher_points_de_tache}}
(inconnus)
{{else}}
{{current.tache.system.points_de_tache}}
{{/if}}
</subline>
{{#if (or current.tache.system.nb_jet_succes current.tache.system.nb_jet_echec)}}
<subline>Succès: {{current.tache.system.nb_jet_succes}} / Echecs: {{current.tache.system.nb_jet_echec}}</subline>
{{/if}}
{{#if current.tache.system.fatigue}}
<subline>Fatigue: {{current.tache.system.fatigue}}</subline>
{{/if}}
{{#if current.tache.system.periodicite}}
<subline>Périodicité: {{current.tache.system.periodicite}}</subline>
{{/if}}
{{/if}}
</roll-part-detail>