Nouvelle fenêtre de jets de dés
This commit is contained in:
@@ -67,7 +67,9 @@
|
||||
<input class="derivee-value" type="number" name="system.compteurs.eau.value" value="{{system.compteurs.eau.value}}" data-dtype="number"/>
|
||||
</li>
|
||||
<li class="caracteristique flexrow list-item" data-tooltip="Niveau d'éthylisme">
|
||||
<label for="system.compteurs.ethylisme.value">{{system.compteurs.ethylisme.label}}</label>
|
||||
<label for="system.compteurs.ethylisme.value">{{system.compteurs.ethylisme.label}}
|
||||
{{#if system.compteurs.ethylisme.nb_doses}}({{system.compteurs.ethylisme.nb_doses}} doses){{/if}}
|
||||
</label>
|
||||
<select class="derivee-value" name="system.compteurs.ethylisme.value" data-dtype="Number">
|
||||
{{selectOptions (RDD_CONFIG 'niveauEthylisme') selected=system.compteurs.ethylisme.value valueAttr="value" nameAttr="value" labelAttr="label"}}
|
||||
</select>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<li class="caracteristique flexrow list-item">
|
||||
<span class="carac-label">Niveau</span>
|
||||
<label class="carac-value">{{numberFormat niveau decimals=0 sign=true}}
|
||||
<label class="carac-value">{{plusMoins niveau}}
|
||||
</label>
|
||||
<label class="carac-xp"/>
|
||||
</li>
|
||||
|
@@ -4,6 +4,6 @@
|
||||
{{#each list as |comp|}}
|
||||
<span class="item" data-item-id="{{comp._id}}"><a class="roll-competence">{{comp.name}}</a></span>{{~#unless (isLastIndex @index ../list)~}},{{/unless~}}
|
||||
{{/each}}
|
||||
{{numberFormat niveau decimals=0 sign=true}}
|
||||
{{plusMoins niveau}}
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<div class="flexrow item" data-item-id="{{competence._id}}">
|
||||
<a class="roll-competence" name="Esquive">{{upperFirst name}}</a>
|
||||
<div class="flexrow">
|
||||
<div>{{numberFormat competence.system.niveau decimals=0 sign=true}}</div>
|
||||
<div>{{plusMoins competence.system.niveau}}</div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
@@ -14,7 +14,7 @@
|
||||
<span class="flex-grow-2">
|
||||
{{#if sort.system.caseTMRspeciale}}{{sort.system.caseTMRspeciale}}{{else}}{{upperFirst sort.system.caseTMR}}{{/if}}
|
||||
</span>
|
||||
<span class="flex-grow-1">R{{itemSort-spaceIfText sort.system.difficulte}} r{{itemSort-spaceIfText sort.system.ptreve}}</span>
|
||||
<span class="flex-grow-1">{{itemSort-diffReve sort}} {{itemSort-coutReve sort}}</span>
|
||||
{{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=sort options=@root.options}}
|
||||
</li>
|
||||
{{/each}}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<ul class="item-list alterne-list">
|
||||
{{#each subacteurs.montures as |monture id|}}
|
||||
<li class="item flexrow list-item" data-subactor-id="{{monture.id}}" data-tooltip="{{monture.name}}">
|
||||
<img class="sheet-competence-img subacteur-open" src="{{monture.img}}"/>
|
||||
<img class="actor-img-small subacteur-open" src="{{monture.img}}"/>
|
||||
<span class="subacteur-label subacteur-open"><a>{{monture.name}}</a></span>
|
||||
<div class="flex-shrink">
|
||||
<a class="subacteur-delete" data-tooltip="Supprimer"><i class="fas fa-trash"></i></a>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<ul class="item-list alterne-list">
|
||||
{{#each subacteurs.suivants as |suivant id|}}
|
||||
<li class="item flexrow list-item" data-subactor-id="{{suivant.id}}" data-tooltip="{{suivant.name}}">
|
||||
<img class="sheet-competence-img subacteur-open" src="{{suivant.img}}"/>
|
||||
<img class="actor-img-small subacteur-open" src="{{suivant.img}}"/>
|
||||
<span class="subacteur-label subacteur-open">
|
||||
<a>{{suivant.name}}</a>
|
||||
</span>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
{{#each subacteurs.vehicules as |vehicule id|}}
|
||||
<li class="item flexrow list-item" data-subactor-id="{{vehicule.id}}">
|
||||
<img class="sheet-competence-img subacteur-open" src="{{vehicule.img}}" data-tooltip="{{vehicule.name}}"/>
|
||||
<img class="actor-img-small subacteur-open" src="{{vehicule.img}}" data-tooltip="{{vehicule.name}}"/>
|
||||
<span class="subacteur-label subacteur-open"><a>{{vehicule.name}}</a></span>
|
||||
<span>{{vehicule.system.categorie}}</span>
|
||||
<span>{{vehicule.system.etat.resistance.max}}</span>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
<ol class="item-list alterne-list">
|
||||
{{#each resonances as |actor|}}
|
||||
<li class="item flexrow list-item" data-actor-id="{{actor.id}}">
|
||||
<img class="sheet-competence-img subacteur-open" src="{{actor.img}}" data-tooltip="{{actor.name}}"/>
|
||||
<img class="actor-img-small subacteur-open" src="{{actor.img}}" data-tooltip="{{actor.name}}"/>
|
||||
<span class="subacteur-label subacteur-open"><a>{{actor.name}}</a></span>
|
||||
|
||||
{{!-- {{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=oeuvre options=@root.options}} --}}
|
||||
|
@@ -4,6 +4,7 @@
|
||||
<span>{{rolled.caracValue}} à {{plusMoins rolled.finalLevel}}</span>
|
||||
{{#if ajustements}}
|
||||
{{/if}}
|
||||
{{log this}}
|
||||
{{#if rolled.factorHtml}}<span class="rdd-diviseur">×{{{rolled.factorHtml}}}</span>{{/if}}
|
||||
<span>= {{rolled.score}}%</span>
|
||||
{{#if rolled.factorHtml}}
|
||||
|
@@ -10,5 +10,5 @@
|
||||
La méditation de {{alias}} ne porte pas ses fruits, il ne distingue aucun signe Draconique.
|
||||
{{/if}}
|
||||
<br><span>{{alias}} s'est fatigué de 2 cases.</span>
|
||||
{{#if rolled.isEPart}}<br><span>Son échec {{#if rolled.isETotal}}total{{else}}particulier{{/if}} augmente de 1 la difficulté de la méditation!</span>{{/if~}}
|
||||
{{#if rolled.isEPart}}<br><span>Son échec {{#if rolled.isETotal}}total{{else}}particulier{{/if}} augmente la difficulté de la méditation de 1 !</span>{{/if~}}
|
||||
</p>
|
||||
|
8
templates/partial-description.hbs
Normal file
8
templates/partial-description.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
{{#if (or description reference)}}
|
||||
<div class="poesie-extrait">
|
||||
{{{description}}}
|
||||
{{#if reference}}
|
||||
<p class="poesie-reference">{{reference}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,11 +1,11 @@
|
||||
<div class="table-ajustement">
|
||||
<span class="tooltip tooltip-dotted">
|
||||
<span>Ajustement Final:</span>
|
||||
<span class="roll-param-resolution">{{selectedCarac.value}} / {{plusMoins finalLevel}}</span>
|
||||
<span class="roll-part-resolution">{{selectedCarac.value}} / {{plusMoins finalLevel}}</span>
|
||||
<div class="tooltiptext ttt-ajustements">
|
||||
{{#each ajustements as |item key|}}
|
||||
{{#if item.used}}
|
||||
<div class="{{#if item.strong}}strong-text{{/if}}">
|
||||
<div>
|
||||
{{#if item.descr}}
|
||||
{{{item.descr}}}
|
||||
{{else}}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<div class="flexrow utilisation-coeur">
|
||||
<label class="">Ajustement de Cœur</label>
|
||||
<div class="select-suivant">
|
||||
<img class="sheet-competence-img selected-suivant-coeur" src="{{use.coeur.img}}" data-tooltip="{{use.coeur.name}}" />
|
||||
<img class="actor-img-small selected-suivant-coeur" src="{{use.coeur.img}}" data-tooltip="{{use.coeur.name}}" />
|
||||
<select name="select-suivant-coeur" class="select-suivant-coeur" data-dtype="String">
|
||||
<option value="">Ignorer</option>
|
||||
{{#each amoureux as |amour id|}}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="flexrow">
|
||||
<div class="flexrow" >
|
||||
<label for="diffLibre">Difficulté choisie</label>
|
||||
<select name="diffLibre" data-dtype="number" {{#unless use.libre}}disabled{{/unless}}>
|
||||
{{#select diffLibre}}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
{{rolled.roll}}
|
||||
</strong> sur {{rolled.score}}%
|
||||
{{#if (and rolled.caracValue rolled.finalLevel)}}
|
||||
({{#if (gt rolled.diviseurSignificative 1)}}1/{{rolled.diviseurSignificative}}{{/if}}
|
||||
({{#if (gt rolled.diviseurSignificative 1)}}{{fractionOneN rolled.diviseurSignificative}}{{/if}}
|
||||
de {{rolled.caracValue}} à {{plusMoins rolled.finalLevel}})
|
||||
{{/if}}
|
||||
<strong>{{rolled.quality}}</strong>
|
||||
|
23
templates/roll/roll-ajustements.hbs
Normal file
23
templates/roll/roll-ajustements.hbs
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="table-ajustement">
|
||||
<span class="tooltip tooltip-dotted">
|
||||
<span class="roll-part-resolution">Ajustements: {{rollData.current.carac.value}} à {{plusMoins rollData.current.totaldiff}}</span>
|
||||
<div class="tooltiptext ttt-ajustements">
|
||||
{{#each rollData.ajustements as |ajust|}}
|
||||
{{#if ajust}}
|
||||
<div>
|
||||
{{#if ajust.descr}}
|
||||
{{{ajust.descr}}}
|
||||
{{else}}
|
||||
{{{ajust.label}}}{{#if ajust.isDiff}}: {{plusMoins ajust.diff}}{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</span>
|
||||
{{#if rollData.current.significative.used}}
|
||||
<br><span>
|
||||
Significative requise <span class="rdd-diviseur">×{{{rollData.current.significative.label}}}</span>!
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
6
templates/roll/roll-button.hbs
Normal file
6
templates/roll/roll-button.hbs
Normal file
@@ -0,0 +1,6 @@
|
||||
<button name="roll-dialog-button">Lancer
|
||||
{{rollData.current.carac.value}} à {{plusMoins rollData.current.totaldiff}}
|
||||
{{#if rollData.current.significative.used}}
|
||||
<span class="rdd-diviseur">×{{{rollData.current.significative.label}}}</span>
|
||||
{{/if}}
|
||||
</button>
|
9
templates/roll/roll-chances.hbs
Normal file
9
templates/roll/roll-chances.hbs
Normal file
@@ -0,0 +1,9 @@
|
||||
{{#with (computeResolutionChances carac diff) as |cell|}}
|
||||
<span class="table-proba-reussite">
|
||||
Part. <span class="rdd-roll-part">{{cell.part}}</span>
|
||||
Sign. <span class="rdd-roll-sign">{{cell.sign}}</span>
|
||||
Réussite <span class="rdd-roll-norm">{{cell.score}}</span>
|
||||
E.Part. <span class="rdd-roll-epart">{{cell.epart}}</span>
|
||||
E.Tot. <span class="rdd-roll-etotal">{{cell.etotal}}</span>
|
||||
</span>
|
||||
{{/with}}
|
20
templates/roll/roll-dialog.hbs
Normal file
20
templates/roll/roll-dialog.hbs
Normal file
@@ -0,0 +1,20 @@
|
||||
<form class="roll-dialog">
|
||||
<roll-header></roll-header>
|
||||
<roll-mode>
|
||||
{{#each modes as |mode|}}
|
||||
{{> 'roll-mode' mode}}
|
||||
{{/each}}
|
||||
</roll-mode>
|
||||
<roll-action>{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='action'}}{{/each}}</roll-action>
|
||||
<roll-carac>{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='carac'}}{{/each}}</roll-carac>
|
||||
<roll-comp>{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='comp'}}{{/each}}</roll-comp>
|
||||
<roll-choix>{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='choix'}}{{/each}}</roll-choix>
|
||||
<roll-conditions>{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='conditions'}}{{/each}}</roll-conditions>
|
||||
{{log rollData.current rollData.current.carac rollData.current.totaldiff}}</roll-table>
|
||||
<roll-table>{{> 'roll-table' carac=rollData.current.carac.value diff=rollData.current.totaldiff}}</roll-table>
|
||||
<roll-chances>{{> 'roll-chances' carac=rollData.current.carac.value diff=rollData.current.totaldiff}}</roll-chances>
|
||||
<roll-resume>{{> 'roll-ajustements' }}
|
||||
{{#each templates as |template|}}{{> 'roll-section' rollData=@root.rollData currentsection='ajustements'}}{{/each}}
|
||||
</roll-resume>
|
||||
<roll-buttons>{{> 'roll-button' }}</roll-buttons>
|
||||
</form>
|
3
templates/roll/roll-mode.hbs
Normal file
3
templates/roll/roll-mode.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<button name="roll-mode" data-tooltip="{{name}}" data-mode="{{code}}" data-checked="{{selected}}">
|
||||
<img src="{{icon}}">
|
||||
</button>
|
3
templates/roll/roll-oeuvre-chant.hbs
Normal file
3
templates/roll/roll-oeuvre-chant.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.oeuvre.system}}
|
||||
</subline>
|
3
templates/roll/roll-oeuvre-danse.hbs
Normal file
3
templates/roll/roll-oeuvre-danse.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.oeuvre.system}}
|
||||
</subline>
|
3
templates/roll/roll-oeuvre-musique.hbs
Normal file
3
templates/roll/roll-oeuvre-musique.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.oeuvre.system}}
|
||||
</subline>
|
3
templates/roll/roll-oeuvre-oeuvre.hbs
Normal file
3
templates/roll/roll-oeuvre-oeuvre.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.oeuvre.system}}
|
||||
</subline>
|
3
templates/roll/roll-oeuvre-recettecuisine.hbs
Normal file
3
templates/roll/roll-oeuvre-recettecuisine.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.oeuvre.system}}
|
||||
</subline>
|
1
templates/roll/roll-part-action.hbs
Normal file
1
templates/roll/roll-part-action.hbs
Normal file
@@ -0,0 +1 @@
|
||||
<span>{{current.verb}}</span>
|
2
templates/roll/roll-part-actor.hbs
Normal file
2
templates/roll/roll-part-actor.hbs
Normal file
@@ -0,0 +1,2 @@
|
||||
<img src="{{rollData.active.img}}" data-tooltip="{{rollData.active.name}}" />
|
||||
<span>{{rollData.active.name}}</span>
|
4
templates/roll/roll-part-appelmoral.hbs
Normal file
4
templates/roll/roll-part-appelmoral.hbs
Normal file
@@ -0,0 +1,4 @@
|
||||
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
|
||||
<label for="{{code}}" data-tooltip="Moral: {{plusMoins refs.moral}}">
|
||||
{{#if current.icon}}{{{current.icon}}}{{/if}}{{refs.label}}
|
||||
</label>
|
2
templates/roll/roll-part-astrologique.hbs
Normal file
2
templates/roll/roll-part-astrologique.hbs
Normal file
@@ -0,0 +1,2 @@
|
||||
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
|
||||
<label for="{{code}}">{{current.label}}</label>
|
14
templates/roll/roll-part-attaque.hbs
Normal file
14
templates/roll/roll-part-attaque.hbs
Normal file
@@ -0,0 +1,14 @@
|
||||
{{log 'roll-part-attaque.current' current}}
|
||||
{{log 'roll-part-attaque.refs' refs}}
|
||||
<roll-part-img>
|
||||
{{#if current.attaque}}
|
||||
<img src="{{current.attaque.arme.img}}" data-tooltip="{{current.attaque.arme.name}}" />
|
||||
{{/if}}
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>
|
||||
<select name="select-attaque" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.attaques selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
</subline>
|
||||
</roll-part-detail>
|
4
templates/roll/roll-part-carac.hbs
Normal file
4
templates/roll/roll-part-carac.hbs
Normal file
@@ -0,0 +1,4 @@
|
||||
<select name="select-carac" {{#if (or rollData.mode.retry (eq refs.caracs.length 1))}}disabled{{/if}}>
|
||||
{{selectOptions refs.caracs selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
<selected-numeric-value>{{current.value}}</selected-numeric-value>
|
3
templates/roll/roll-part-checkbox.hbs
Normal file
3
templates/roll/roll-part-checkbox.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
|
||||
{{#if current.icon}}{{{current.icon}}}{{/if}}
|
||||
<label for="{{code}}">{{current.label}} : {{plusMoins current.value}}</label>
|
8
templates/roll/roll-part-coeur.hbs
Normal file
8
templates/roll/roll-part-coeur.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
<label for="{{code}}">Coeur</label>
|
||||
<select name="{{code}}" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.amoureux selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
{{#if current.amour}}
|
||||
<img src="{{current.amour.img}}" data-tooltip="{{current.amour.name}}" />
|
||||
<span>{{plusMoins current.value}}</span>
|
||||
{{/if}}
|
5
templates/roll/roll-part-comp.hbs
Normal file
5
templates/roll/roll-part-comp.hbs
Normal file
@@ -0,0 +1,5 @@
|
||||
<select name="select-comp" {{#if (or rollData.mode.retry (eq refs.comps.length 1))}}disabled{{/if}}>
|
||||
{{selectOptions refs.comps selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
|
||||
<img src="{{current.comp.img}}" data-tooltip="{{current.comp.name}}" />
|
8
templates/roll/roll-part-conditions.hbs
Normal file
8
templates/roll/roll-part-conditions.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
<label for="{{code}}">Conditions</label>
|
||||
{{numberInput current.value
|
||||
name=name
|
||||
step=1
|
||||
min=current.min
|
||||
max=current.max
|
||||
disabled=rollData.mode.retry
|
||||
}}
|
12
templates/roll/roll-part-defense.hbs
Normal file
12
templates/roll/roll-part-defense.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
<roll-part-img>
|
||||
{{#if current.defense}}
|
||||
<img src="{{current.defense.arme.img}}" data-tooltip="{{current.defense.arme.name}}" />
|
||||
{{/if}}
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>
|
||||
<select name="select-arme" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.defenses selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
</subline>
|
||||
</roll-part-detail>
|
10
templates/roll/roll-part-diff.hbs
Normal file
10
templates/roll/roll-part-diff.hbs
Normal file
@@ -0,0 +1,10 @@
|
||||
<subline>
|
||||
<label for="{{code}}">{{current.label}} </label>
|
||||
{{numberInput current.value
|
||||
name=name
|
||||
step=1
|
||||
min=current.min
|
||||
max=current.max
|
||||
disabled=(or rollData.mode.retry current.disabled)
|
||||
}}
|
||||
</subline>
|
13
templates/roll/roll-part-enctotal.hbs
Normal file
13
templates/roll/roll-part-enctotal.hbs
Normal file
@@ -0,0 +1,13 @@
|
||||
<input name="{{code}}" type="checkbox" {{#if current.checked}}checked{{/if}}/>
|
||||
<label for="{{code}}">
|
||||
{{#if current.icon}}{{{current.icon}}}{{/if}}
|
||||
{{current.label}}
|
||||
</label>
|
||||
<label for="malusenc"></label>
|
||||
{{numberInput current.value
|
||||
name='malusenc'
|
||||
step=1
|
||||
min=-30
|
||||
max=0
|
||||
disabled=rollData.mode.retry
|
||||
}}
|
1
templates/roll/roll-part-item.hbs
Normal file
1
templates/roll/roll-part-item.hbs
Normal file
@@ -0,0 +1 @@
|
||||
<span>: {{current.item.name}}</span>
|
14
templates/roll/roll-part-jeu.hbs
Normal file
14
templates/roll/roll-part-jeu.hbs
Normal file
@@ -0,0 +1,14 @@
|
||||
<roll-part-img>
|
||||
<img src="{{current.jeu.img}}" data-tooltip="{{current.jeu.name}}" />
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>
|
||||
<select name="select-jeu" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.jeux selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
|
||||
</subline>
|
||||
<subline>
|
||||
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.jeu.system}}
|
||||
</subline>
|
||||
</roll-part-detail>
|
59
templates/roll/roll-part-meditation.hbs
Normal file
59
templates/roll/roll-part-meditation.hbs
Normal file
@@ -0,0 +1,59 @@
|
||||
<roll-part-img>
|
||||
<img src="{{current.meditation.img}}" data-tooltip="{{current.meditation.name}}" />
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>
|
||||
Rêve actuel: {{rollData.active.actor.system.reve.reve.value}}
|
||||
</subline>
|
||||
<subline>
|
||||
<select name="select-meditation" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.meditations selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
{{#if current.meditation.system.malus}}
|
||||
<selected-numeric-value>
|
||||
{{plusMoins current.meditation.system.malus}}
|
||||
</selected-numeric-value>
|
||||
{{/if}}
|
||||
</subline>
|
||||
|
||||
|
||||
<subline><strong><span name="theme">{{current.meditation.system.theme}}</span></strong></subline>
|
||||
<subline>Support: <strong><span name="support">{{current.meditation.system.support}}</span></strong></subline>
|
||||
<subline>
|
||||
TMR: <strong><span name="tmr">{{typeTmr-name current.meditation.system.tmr}}</span></strong>
|
||||
{{#unless current.isTMR}}
|
||||
<i class="fa-solid fa-circle-exclamation"></i> actuelle: {{caseTmr-label rollData.active.actor.system.reve.tmrpos.coord}} {{rollData.active.actor.system.reve.tmrpos.coord}}
|
||||
{{/unless}}
|
||||
</subline>
|
||||
<subline>Durée: 60 minutes</subline>
|
||||
<hr>
|
||||
<subline>
|
||||
<input class="conditionMeditation" type="checkbox" name="isComportement" {{#if current.isComportement}}checked{{/if}} {{#if rollData.mode.retry}}disabled{{/if}}/>
|
||||
<label for="isComportement">Comportement:
|
||||
<span name="comportement">{{current.meditation.system.comportement}}</span>
|
||||
</label>
|
||||
</subline>
|
||||
|
||||
<subline>
|
||||
<input class="conditionMeditation" type="checkbox" name="isHeure" {{#if current.isHeure}}checked{{/if}} {{#if rollData.mode.retry}}disabled{{/if}}/>
|
||||
<label for="isHeure">Heure:
|
||||
{{#with current.meditation.system.heure as |heure|}}
|
||||
<span name="heure">{{timestamp-label heure}}</span>
|
||||
<span name="heure-signe">{{timestamp-imgSigneHeure heure}}</span>
|
||||
{{/with}}
|
||||
</label>
|
||||
</subline>
|
||||
|
||||
<subline>
|
||||
<input class="conditionMeditation" type="checkbox" name="isPurification" {{#if current.isPurification}}checked{{/if}} {{#if rollData.mode.retry}}disabled{{/if}}/>
|
||||
<label for="isPurification">Purification:
|
||||
<span name="purification">{{current.meditation.system.purification}}</span></label>
|
||||
</subline>
|
||||
|
||||
<subline>
|
||||
<input class="conditionMeditation" type="checkbox" name="isVeture" {{#if current.isVeture}}checked{{/if}} {{#if rollData.mode.retry}}disabled{{/if}}/>
|
||||
<label for="isVeture">Vêture:
|
||||
<span name="veture">{{current.meditation.system.veture}}</span>
|
||||
</label>
|
||||
</subline>
|
||||
</roll-part-detail>
|
16
templates/roll/roll-part-oeuvre.hbs
Normal file
16
templates/roll/roll-part-oeuvre.hbs
Normal file
@@ -0,0 +1,16 @@
|
||||
<roll-part-img>
|
||||
<img src="{{current.oeuvre.img}}" data-tooltip="{{current.oeuvre.name}}" />
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>
|
||||
<select name="select-oeuvre" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.oeuvres selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
{{#if current.oeuvre}}
|
||||
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
|
||||
{{/if}}
|
||||
</subline>
|
||||
{{#if current.oeuvre}}
|
||||
{{> (concat 'roll-oeuvre-' current.oeuvre.type)}}
|
||||
{{/if}}
|
||||
</roll-part-detail>
|
2
templates/roll/roll-part-opponent.hbs
Normal file
2
templates/roll/roll-part-opponent.hbs
Normal file
@@ -0,0 +1,2 @@
|
||||
<span>{{rollData.opponent.name}}</span>
|
||||
<img class="action-img" src="{{rollData.opponent.img}}" data-tooltip="{{rollData.opponent.name}}" />
|
8
templates/roll/roll-part-rollmode.hbs
Normal file
8
templates/roll/roll-part-rollmode.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
{{#each refs.rollmodes as |rollmode|}}
|
||||
<button name="roll-rollmode"
|
||||
data-key="{{rollmode.key}}"
|
||||
data-tooltip="{{localize rollmode.label}}"
|
||||
data-checked="{{eq rollmode.key ../current.key}}">
|
||||
<i class="{{rollmode.icon}}"></i>
|
||||
</button>
|
||||
{{/each}}
|
10
templates/roll/roll-part-sign.hbs
Normal file
10
templates/roll/roll-part-sign.hbs
Normal file
@@ -0,0 +1,10 @@
|
||||
{{#if (eq current.surprise 'totale')}}
|
||||
<span data-tooltip="{{current.reason}}">
|
||||
<img class="button-effect-img" src="icons/svg/stoned.svg">
|
||||
</span>
|
||||
{{else if (gt current.diviseur 1)}}
|
||||
<span data-tooltip="{{current.reason}}">
|
||||
<span class="rdd-diviseur">×{{fractionOneN current.diviseur}}</span>
|
||||
</span>
|
||||
{{/if}}
|
||||
|
48
templates/roll/roll-part-sort.hbs
Normal file
48
templates/roll/roll-part-sort.hbs
Normal file
@@ -0,0 +1,48 @@
|
||||
<roll-part-img>
|
||||
<img src="{{current.sort.img}}" data-tooltip="{{current.sort.name}}" />
|
||||
</roll-part-img>
|
||||
<roll-part-detail>
|
||||
<subline>TMR actuelle: {{caseTmr-label rollData.active.actor.system.reve.tmrpos.coord}} {{rollData.active.actor.system.reve.tmrpos.coord}}</subline>
|
||||
<subline>
|
||||
<select name="select-sort" {{#if rollData.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.sorts selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
{{#if current.isDiffVariable}}
|
||||
{{numberInput current.value
|
||||
name='diff-var'
|
||||
step=1
|
||||
min=-20
|
||||
max=-1
|
||||
disabled=rollData.mode.retry
|
||||
}}
|
||||
{{else}}
|
||||
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
|
||||
{{/if}}
|
||||
</subline>
|
||||
<subline>
|
||||
<label for="ptreve-var">Rêve {{itemSort-coutReve current.sort}} </span>
|
||||
</label>
|
||||
{{#if current.isReveVariable}}
|
||||
{{numberInput current.ptreve
|
||||
name='ptreve-var'
|
||||
step=1
|
||||
min=1
|
||||
max=30
|
||||
disabled=rollData.mode.retry
|
||||
}}
|
||||
{{/if}}
|
||||
<span> (actuel: {{rollData.active.actor.system.reve.reve.value}})</span>
|
||||
</subline>
|
||||
<subline>
|
||||
{{#if current.sort.system.isrituel}}
|
||||
<i class="fa-solid fa-book-sparkles"></i> Rituel
|
||||
{{else}}
|
||||
<input type="checkbox" name="reserve" {{#if current.isReserve}}checked{{/if}} {{#if rollData.mode.retry}}disabled{{/if}}/>
|
||||
<label for="reserve"><i class="fa-solid fa-sparkles"></i> Mettre en réserve</label>
|
||||
{{/if}}
|
||||
</subline>
|
||||
<subline>Case TMR: {{current.caseTMR}}</subline>
|
||||
{{#if current.bonusCase}}
|
||||
<subline>Bonus case: {{plusMoins current.bonusCase}}%</subline>
|
||||
{{/if}}
|
||||
</roll-part-detail>
|
28
templates/roll/roll-part-tache.hbs
Normal file
28
templates/roll/roll-part-tache.hbs
Normal file
@@ -0,0 +1,28 @@
|
||||
<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.mode.retry}}disabled{{/if}}>
|
||||
{{selectOptions refs.taches selected=current.key valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
|
||||
</subline>
|
||||
<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}}
|
||||
</roll-part-detail>
|
8
templates/roll/roll-part-tricher.hbs
Normal file
8
templates/roll/roll-part-tricher.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
<label for="{{name}}">Forcer </label>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/d100.svg" data-tooltip="Forcer le résultat du jet de dé"/>
|
||||
{{numberInput current.resultat
|
||||
name=name
|
||||
step=1
|
||||
min=-1
|
||||
max=100
|
||||
}}
|
7
templates/roll/roll-section.hbs
Normal file
7
templates/roll/roll-section.hbs
Normal file
@@ -0,0 +1,7 @@
|
||||
{{#if (eq section currentsection)}}
|
||||
<roll-section name="{{code}}">
|
||||
{{#with (roll-part-context rollData code) as |context|}}
|
||||
{{> (lookup context 'template') context }}
|
||||
{{/with}}
|
||||
</roll-section>
|
||||
{{/if}}
|
22
templates/roll/roll-table.hbs
Normal file
22
templates/roll/roll-table.hbs
Normal file
@@ -0,0 +1,22 @@
|
||||
{{log 'roll-table' carac diff this}}
|
||||
<table class='table-resolution'>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{#each (roll-centered-array diff 2) as |col|}}
|
||||
<th class="table-resolution-level" data-col="{{col}}">{{plusMoins col}}</th>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{#each (roll-centered-array carac 2) as |row|}}
|
||||
<tr data-row="{{row}}">
|
||||
<td class="table-resolution-carac" data-col="{{col}}">{{computeResolutionScore row -8}}</td>
|
||||
{{#each (roll-centered-array ../diff 2) as |col|}}
|
||||
<td
|
||||
{{#if (and (eq row ../../carac) (eq col ../../diff))}}class="table-resolution-target"{{/if}}
|
||||
data-row="{{row}}" data-col="{{col}}"
|
||||
>
|
||||
{{computeResolutionScore row col}}
|
||||
</td>
|
||||
{{/each}}
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
Reference in New Issue
Block a user