forked from public/foundryvtt-reve-de-dragon
Fenêtres Roll V2
Maintenant disponibles pour: - méditation - tâches - soins
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<div class="roll-chat">
|
||||
<div class="chat-img">
|
||||
<img src="{{active.img}}" data-tooltip="{{active.name}}" />
|
||||
<img src="{{current.tache.comp.img}}" data-tooltip="{{current.tache.comp.name}}" />
|
||||
</div>
|
||||
<div class="chat-header">
|
||||
{{active.name}} travaille à sa tâche : {{current.tache.label}}
|
||||
</div>
|
||||
|
||||
<div class="chat-resume">
|
||||
{{current.carac.label}} / {{current.comp.label}} à {{current.diff.value}}
|
||||
<br>{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="chat-details">
|
||||
<hr>
|
||||
<p>
|
||||
{{log 'tache' this }}
|
||||
{{#if rolled.isSuccess}}
|
||||
{{active.name}} a obtenu {{rolled.ptTache}} point{{~#unless (eq rolled.ptTache 1)}}s{{/unless}} de tâche,
|
||||
{{else if (or rolled.isETotal rolled.isEPart)}}
|
||||
{{active.name}} a perdu {{math-abs rolled.ptTache}} points de tâche,
|
||||
{{else}}
|
||||
{{active.name}} n'a pas progressé dans la tâche.
|
||||
{{/if}}
|
||||
{{#with current.tache.tache.system as |system|}}
|
||||
Son avancement est de
|
||||
<span class="rdd-roll-{{#if (gt system.points_de_tache_courant 0)}}norm{{else}}etotal{{/if}}">
|
||||
{{system.points_de_tache_courant}}
|
||||
{{#unless system.cacher_points_de_tache}} sur {{system.points_de_tache}}{{/unless}}
|
||||
</span>
|
||||
point{{~#unless (eq system.points_de_tache_courant 1)}}s{{/unless}} de tâche
|
||||
{{log 'tentatives' (math-sum system.nb_jet_succes system.nb_jet_echec) }}
|
||||
({{~#with (math-sum system.nb_jet_succes system.nb_jet_echec) as |tentatives|}}
|
||||
{{log 'tentatives' tentatives}}
|
||||
{{~#if (ne tentatives 1)}}{{tentatives}} tentatives{{else}}première tentative{{/if~}}
|
||||
{{/with~}}).
|
||||
{{/with}}
|
||||
</p>
|
||||
|
||||
{{#if rolled.isETotal}}
|
||||
<span class='chat-card-info'>
|
||||
Son échec total augmente de 1 la difficulté de la tâche!</span>
|
||||
</span>
|
||||
{{/if}}
|
||||
|
||||
{{#if (and current.tache.tache.system.fatigue (regle-optionnelle 'appliquer-fatigue'))}}
|
||||
<span class='chat-card-info'>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/fatigue.svg"/>
|
||||
{{active.name}} s'est fatigué{{~#if (actor-isFeminin active.actor)}}e{{/if}} de {{current.tache.tache.system.fatigue}} case{{~#if (gt current.tache.tache.system.fatigue 1)}}s{{/if}}.
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="chat-buttons">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user