handlebar partiel pour texte d'ambiance

This commit is contained in:
Vincent Vandemeulebrouck 2021-02-26 20:46:29 +01:00
parent 74a7b2c0ad
commit adecbef178
8 changed files with 21 additions and 91 deletions

View File

@ -251,6 +251,7 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html', 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html',
// messages tchat // messages tchat
'systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-info-appel-au-moral.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-demande-defense.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-demande-defense.html',
'systems/foundryvtt-reve-de-dragon/templates/chat-demande-attaque-particuliere.html', 'systems/foundryvtt-reve-de-dragon/templates/chat-demande-attaque-particuliere.html',

View File

@ -0,0 +1,14 @@
{{#if description}}
<hr>
<span class="poesie-extrait">
{{{description}}}
{{#if reference}}
<p class="poesie-reference">{{reference}}</p>
{{/if}}
</span>
{{else if reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{reference}}</p>
</span>
{{/if}}

View File

@ -11,18 +11,4 @@
{{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}. {{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}.
{{/if}} {{/if}}
</div> </div>
{{#if oeuvre.data.description}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}

View File

@ -11,18 +11,4 @@
{{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}. {{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}.
{{/if}} {{/if}}
</div> </div>
{{#if oeuvre.data.description}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}

View File

@ -11,18 +11,4 @@
{{alias}} a perdu ... {{alias}} a perdu ...
{{/if}} {{/if}}
</div> </div>
{{#if oeuvre.data.description}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}

View File

@ -11,18 +11,4 @@
{{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}. {{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}.
{{/if}} {{/if}}
</div> </div>
{{#if oeuvre.data.description}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}

View File

@ -12,18 +12,4 @@
{{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}. {{alias}} est peu inspiré(e) et son interprétation a une qualité de {{qualiteFinale}}.
{{/if}} {{/if}}
</div> </div>
{{#if oeuvre.data.description}} {{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}

View File

@ -16,19 +16,4 @@
<br>Au vu de l'exotisme du plat, les convives devront réussir un jet de Volonté / Cuisine à {{exotismeFinal}}. <br>Au vu de l'exotisme du plat, les convives devront réussir un jet de Volonté / Cuisine à {{exotismeFinal}}.
En cas d'échec, ils peuvent se forcer pour faire plaisir au Maître Queux, mais devront faire un jet de moral Malheureux. En cas d'échec, ils peuvent se forcer pour faire plaisir au Maître Queux, mais devront faire un jet de moral Malheureux.
{{/if}} {{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
{{#if oeuvre.data.description}}
<hr>
<span class="poesie-extrait">
{{{oeuvre.data.description}}}
{{#if oeuvre.data.reference}}
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
{{/if}}
</span>
{{else if oeuvre.data.reference}}
<hr>
<span class="poesie-extrait">
<p class="poesie-reference">{{oeuvre.data.reference}}</p>
</span>
{{/if}}