forked from public/foundryvtt-reve-de-dragon
Tirer dans les compendiums selon les fréquences
This commit is contained in:
14
templates/chat-compendium-table-roll-rencontre.html
Normal file
14
templates/chat-compendium-table-roll-rencontre.html
Normal file
@ -0,0 +1,14 @@
|
||||
<img class="chat-icon" src="{{rencontre.img}}" alt="{{rencontre.name}}" />
|
||||
<h4>{{#if mauvaise}}Mauvaise rencontre{{else}}Rencontre{{/if}} en {{typeTmr-name tmr.type}}</h4>
|
||||
<div>{{sourceCompendium}}</div>
|
||||
<div>Jet: {{roll.formula}} : {{roll.total}}{{percentages}}</div>
|
||||
<hr>
|
||||
<div>
|
||||
<p>{{rencontre.name}} {{rencontre.system.force}} ({{rencontre.system.formule}})</p>
|
||||
<p>{{linkCompendium sourceCompendium rencontre.id rencontre.name}}</p>
|
||||
{{#if rencontre.system.description}}
|
||||
<div class="poesie-extrait">
|
||||
{{{rencontre.system.description}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
13
templates/chat-compendium-table-roll.html
Normal file
13
templates/chat-compendium-table-roll.html
Normal file
@ -0,0 +1,13 @@
|
||||
<h4>Tirage aléatoire: {{typeName}}</h4>
|
||||
<div>{{sourceCompendium}}</div>
|
||||
<div>Jet {{roll.formula}} : {{roll.total}}{{percentages}}</div>
|
||||
<hr>
|
||||
<div>
|
||||
<img class="chat-icon" src="{{document.img}}" alt="{{document.name}}" />
|
||||
<p>{{linkCompendium @root.sourceCompendium document.id document.name}}</p>
|
||||
{{#if document.system.description}}
|
||||
<div class="poesie-extrait">
|
||||
{{{document.system.description}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
16
templates/chat-compendium-table.html
Normal file
16
templates/chat-compendium-table.html
Normal file
@ -0,0 +1,16 @@
|
||||
<div>
|
||||
<img class="chat-icon" src="{{img}}" alt="{{typeName}}" />
|
||||
<h4>Table aléatoire: {{typeName}}</h4>
|
||||
<div>{{sourceCompendium}}</div>
|
||||
<br>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="flexcol item-list alterne-list">
|
||||
{{#each table as |row|}}
|
||||
<li class="select-target item list-item" >
|
||||
<span>{{row.min}}{{#unless (eq row.min row.max)}}-{{row.max}}{{/unless}} : </span>
|
||||
<span>{{linkCompendium @root.sourceCompendium row.document.id row.document.name}}</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user