Moral sur les oeuvres
Simplification de l'appel au moral pour les oeuvres Ajout de la possibilité d'utiliser le moral sur les oeuvres Affichage du moral/appel selon la caractéristique
This commit is contained in:
		@@ -489,15 +489,15 @@ export class RdDActorSheet extends ActorSheet {
 | 
			
		||||
      this.actor.transformerStress();
 | 
			
		||||
      this.render(true);
 | 
			
		||||
    });
 | 
			
		||||
    html.find('#moral-malheureux').click((event) => {
 | 
			
		||||
    html.find('.moral-malheureux').click((event) => {
 | 
			
		||||
      this.actor.jetDeMoral('malheureuse');
 | 
			
		||||
      this.render(true);
 | 
			
		||||
    });
 | 
			
		||||
    html.find('#moral-neutre').click((event) => {
 | 
			
		||||
    html.find('.moral-neutre').click((event) => {
 | 
			
		||||
      this.actor.jetDeMoral('neutre');
 | 
			
		||||
      this.render(true);
 | 
			
		||||
    });
 | 
			
		||||
    html.find('#moral-heureux').click((event) => {
 | 
			
		||||
    html.find('.moral-heureux').click((event) => {
 | 
			
		||||
      this.actor.jetDeMoral('heureuse');
 | 
			
		||||
      this.render(true);
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
@@ -52,17 +52,18 @@ export class RdDRoll extends Dialog {
 | 
			
		||||
      surencMalusFlag: actor.isPersonnage() ? (actor.data.data.compteurs.surenc.value < 0) : false,
 | 
			
		||||
      surencMalusValue: actor.getSurenc(),
 | 
			
		||||
      useMalusSurenc: false,
 | 
			
		||||
      appelAuMoralPossible : false,    /* Est-ce que l'appel au moral est possible ? Variable utisé pour l'affichage ou non de la ligne concernant le moral */
 | 
			
		||||
      appelAuMoralDemander :false,     /* Est-ce que le joueur demande d'utiliser le moral ? Utile si le joueur change plusieurs fois de carac associée. */
 | 
			
		||||
      useMoral: false,     /* Est-ce que le joueur demande d'utiliser le moral ? Utile si le joueur change plusieurs fois de carac associée. */
 | 
			
		||||
      perteMoralEchec: false, /* Pour l'affichage dans le chat */
 | 
			
		||||
      use: { libre: true, conditions: true, surenc: false, encTotal: false, appelAuMoral : false  /* Le jet se fait ou non en utilisant l'appel au moral */},
 | 
			
		||||
      use: { libre: true, conditions: true, surenc: false, encTotal: false },
 | 
			
		||||
      isMalusEncombrementTotal: RdDItemCompetence.isMalusEncombrementTotal(rollData.competence),
 | 
			
		||||
      useMalusEncTotal: false,
 | 
			
		||||
      encTotal: actor.getEncTotal(),
 | 
			
		||||
      ajustementAstrologique: actor.ajustementAstrologique(),
 | 
			
		||||
      surprise: actor.getSurprise(false),
 | 
			
		||||
      canClose: true
 | 
			
		||||
    }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    mergeObject(rollData, defaultRollData, { recursive: true, overwrite: false });
 | 
			
		||||
    if (rollData.forceCarac) {
 | 
			
		||||
      rollData.carac = rollData.forceCarac;
 | 
			
		||||
@@ -206,24 +207,19 @@ export class RdDRoll extends Dialog {
 | 
			
		||||
      this.rollData.useMalusEncTotal = event.currentTarget.checked;
 | 
			
		||||
      this.updateRollResult();
 | 
			
		||||
    });
 | 
			
		||||
    html.find('#iconeSmile').change((event) => {
 | 
			
		||||
	  console.log("iconeSmile");
 | 
			
		||||
      console.log(html.find('.iconeSmile'));
 | 
			
		||||
      this.updateRollResult();
 | 
			
		||||
    });     
 | 
			
		||||
    html.find('#iconeSmile').click((event) => { /* l'appel au moral, qui donne un bonus de +1 */
 | 
			
		||||
	  this.rollData.appelAuMoralDemander = ! this.rollData.appelAuMoralDemander;
 | 
			
		||||
        if ( this.rollData.appelAuMoralDemander ) {
 | 
			
		||||
    html.find('.imgAppelAuMoral').click((event) => { /* l'appel au moral, qui donne un bonus de +1 */
 | 
			
		||||
      this.rollData.useMoral = !this.rollData.useMoral;
 | 
			
		||||
      if (this.rollData.useMoral) {
 | 
			
		||||
        if (this.rollData.moral > 0) {
 | 
			
		||||
            html.find('#iconeSmile')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg";
 | 
			
		||||
		    html.find('#tooltipAppelAuMoralText')[0].innerHTML = "Appel au moral";
 | 
			
		||||
          html.find('.imgAppelAuMoral')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg";
 | 
			
		||||
          html.find('.tooltipAppelAuMoralText')[0].innerHTML = "Appel au moral";
 | 
			
		||||
        } else {
 | 
			
		||||
            html.find('#iconeSmile')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg";
 | 
			
		||||
		    html.find('#tooltipAppelAuMoralText')[0].innerHTML = "Appel à l'énergie du désespoir";
 | 
			
		||||
          html.find('.imgAppelAuMoral')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg";
 | 
			
		||||
          html.find('.tooltipAppelAuMoralText')[0].innerHTML = "Appel à l'énergie du désespoir";
 | 
			
		||||
        }
 | 
			
		||||
      } else {
 | 
			
		||||
		  html.find('#iconeSmile')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg";
 | 
			
		||||
		  html.find('#tooltipAppelAuMoralText')[0].innerHTML = "Sans appel au moral";
 | 
			
		||||
        html.find('.imgAppelAuMoral')[0].src = "/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg";
 | 
			
		||||
        html.find('.tooltipAppelAuMoralText')[0].innerHTML = "Sans appel au moral";
 | 
			
		||||
      }
 | 
			
		||||
      this.updateRollResult();
 | 
			
		||||
    });
 | 
			
		||||
@@ -242,6 +238,7 @@ export class RdDRoll extends Dialog {
 | 
			
		||||
    rollData.dmg = rollData.attackerRoll?.dmg ?? RdDBonus.dmg(rollData, this.actor.getBonusDegat());
 | 
			
		||||
    rollData.caracValue = parseInt(rollData.selectedCarac.value);
 | 
			
		||||
    rollData.coupsNonMortels = (rollData.attackerRoll?.dmg.mortalite ?? rollData.dmg.mortalite) == 'non-mortel';
 | 
			
		||||
    rollData.use.appelAuMoral = this.actor.isPersonnage() && RdDCarac.isActionPhysique(rollData.selectedCarac);
 | 
			
		||||
    let dmgText = Misc.toSignedString(rollData.dmg.total);
 | 
			
		||||
 | 
			
		||||
    if (rollData.coupsNonMortels) {
 | 
			
		||||
@@ -253,20 +250,11 @@ export class RdDRoll extends Dialog {
 | 
			
		||||
      HtmlUtility._showControlWhen($("#div-sort-ptreve"), RdDItemSort.isCoutVariable(rollData.selectedSort))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ( ! RdDCarac.isActionPhysique(rollData.selectedCarac || ! actor.isPersonnage() ) ) {
 | 
			
		||||
	  rollData.appelAuMoralPossible = false;
 | 
			
		||||
	  rollData.use.appelAuMoral = false;
 | 
			
		||||
	} else {
 | 
			
		||||
	  rollData.appelAuMoralPossible = true;
 | 
			
		||||
	  rollData.use.appelAuMoral = rollData.appelAuMoralDemander;
 | 
			
		||||
	  
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    RollDataAjustements.calcul(rollData, this.actor);
 | 
			
		||||
    rollData.finalLevel = this._computeFinalLevel(rollData);
 | 
			
		||||
 | 
			
		||||
    HtmlUtility._showControlWhen($(".diffMoral"), rollData.ajustements.moralTotal.used);
 | 
			
		||||
    HtmlUtility._showControlWhen($("#divAppelAuMoral"),  rollData.appelAuMoralPossible );
 | 
			
		||||
    HtmlUtility._showControlWhen($(".divAppelAuMoral"), rollData.use.appelAuMoral);
 | 
			
		||||
    HtmlUtility._showControlWhen($("#etat-general"), !RdDCarac.isIgnoreEtatGeneral(rollData.selectedCarac, rollData.competence));
 | 
			
		||||
    HtmlUtility._showControlWhen($("#ajust-astrologique"), RdDResolutionTable.isAjustementAstrologique(rollData));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -73,8 +73,8 @@ export const referenceAjustements = {
 | 
			
		||||
    getValue: (rollData, actor) => actor.getSurenc()
 | 
			
		||||
  },
 | 
			
		||||
  moral: {
 | 
			
		||||
    isVisible: (rollData, actor) => RdDCarac.isActionPhysique(rollData.selectedCarac),
 | 
			
		||||
    isUsed: (rollData, actor) => rollData.use?.appelAuMoral,
 | 
			
		||||
    isVisible: (rollData, actor) => actor.isPersonnage() && RdDCarac.isActionPhysique(rollData.selectedCarac) && rollData.useMoral,
 | 
			
		||||
    isUsed: (rollData, actor) => rollData.useMoral,
 | 
			
		||||
    getLabel: (rollData, actor) => 'Appel au moral',
 | 
			
		||||
    getValue: (rollData, actor) => 1
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -825,7 +825,7 @@ ul, li {
 | 
			
		||||
  display: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.iconeSmile	 {
 | 
			
		||||
.imgAppelAuMoral	 {
 | 
			
		||||
  height: 20px;
 | 
			
		||||
  width: 20px;
 | 
			
		||||
  border:none;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
{{log "handlebar actor-sheet" this}} 
 | 
			
		||||
<form class="{{cssClass}}" autocomplete="off">
 | 
			
		||||
 | 
			
		||||
    {{!-- Sheet Header --}}
 | 
			
		||||
@@ -198,9 +197,9 @@
 | 
			
		||||
                        {{else if (eq compteur.label 'Ethylisme')}}
 | 
			
		||||
                        <a class="item-control ethylisme-test" id="ethylisme-test" title="Jet d'Ethylisme">Jet d'Ethylisme</a>
 | 
			
		||||
                        {{else if (eq compteur.label 'Moral')}}
 | 
			
		||||
                        <a id="moral-malheureux" title="Jet de moral situation malheureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg" alt="Jet de moral situation malheureuse"/></a>
 | 
			
		||||
                        <a id="moral-neutre" title="Jet de moral situation neutre"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg" alt="Jet de moral situation neutre"/></a>
 | 
			
		||||
                        <a id="moral-heureux" title="Jet de moral situation heureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg" alt="Jet de moral situation heureuse"/></a>
 | 
			
		||||
                        <a class="moral-malheureux" title="Jet de moral situation malheureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg" alt="Jet de moral situation malheureuse"/></a>
 | 
			
		||||
                        <a class="moral-neutre" title="Jet de moral situation neutre"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg" alt="Jet de moral situation neutre"/></a>
 | 
			
		||||
                        <a class="moral-heureux" title="Jet de moral situation heureuse"><img class="small-button-container" src="systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg" alt="Jet de moral situation heureuse"/></a>
 | 
			
		||||
                        {{else}}
 | 
			
		||||
                        <label></label>
 | 
			
		||||
                      {{/if}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<form class="skill-roll-dialog">
 | 
			
		||||
<h2 class="compdialog" id="compdialogTitle"></h2>
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">Caractéristique </label>
 | 
			
		||||
  <label>Caractéristique </label>
 | 
			
		||||
  <select name="carac" id="carac" data-dtype="String">
 | 
			
		||||
      {{#select carac}}
 | 
			
		||||
      {{#each carac as |caracitem key|}}
 | 
			
		||||
@@ -9,21 +9,19 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label></label>
 | 
			
		||||
  <div class="form-group" id="divAppelAuMoral" >
 | 
			
		||||
    <div class="tooltipAppelAuMoral">
 | 
			
		||||
      <input class="diffAppelAuMoral"  id="useAppelAuMoralCheckbox" type="checkbox" name="appelAuMoralDemander" />
 | 
			
		||||
      <img for="useAppelAuMoralCheckbox" class="iconeSmile"  id="iconeSmile" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
      <span class="tooltipAppelAuMoralText" id="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
  <label class="diffMoral">Moral: {{#if (gt moral 0)}}+{{/if}}{{moral}}</label>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  {{#if attackerRoll}}
 | 
			
		||||
  <label for="categorie">Difficulté</label>
 | 
			
		||||
  <label>Difficulté</label>
 | 
			
		||||
  <label>{{diffLibre}}</label>
 | 
			
		||||
  {{else}}
 | 
			
		||||
  <label for="categorie">Difficulté libre</label>
 | 
			
		||||
  <label>Difficulté libre</label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number" {{#unless use.libre}}disabled{{/unless}}>
 | 
			
		||||
      {{#select diffLibre}}
 | 
			
		||||
      {{#each difficultesLibres as |key|}}
 | 
			
		||||
@@ -32,7 +30,7 @@
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  {{/if}}
 | 
			
		||||
  <label for="categorie">  Conditions</label>
 | 
			
		||||
  <label>  Conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number" {{#unless use.conditions}}disabled{{/unless}}>
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions  as |key|}}
 | 
			
		||||
@@ -40,19 +38,18 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label class="diffMoral" for="categorie">Moral: {{#if (gt moral 0)}}+{{/if}}{{moral}}</label>
 | 
			
		||||
</div>
 | 
			
		||||
{{#if arme}}
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
    {{#if attackerRoll}}
 | 
			
		||||
      {{#if attackerRoll.tactique}}
 | 
			
		||||
      <label for="categorie">Tactique: {{attackerRoll.tactique}}</label>
 | 
			
		||||
      <label>Tactique: {{attackerRoll.tactique}}</label>
 | 
			
		||||
      {{/if}}
 | 
			
		||||
      <label for="categorie">Dégats:</label><label id="dmg-arme-actor"></label>
 | 
			
		||||
      <label>Dégats:</label><label id="dmg-arme-actor"></label>
 | 
			
		||||
      <label></label>
 | 
			
		||||
    {{else}}
 | 
			
		||||
    <span class="tooltip">
 | 
			
		||||
      <label for="categorie">Tactique:</label>
 | 
			
		||||
      <label>Tactique:</label>
 | 
			
		||||
        <select name="tactique-combat" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
 | 
			
		||||
          <option value="Attaque normale">Attaque normale</option>
 | 
			
		||||
          <option value="charge">Charge</option>
 | 
			
		||||
@@ -65,12 +62,12 @@
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </span>
 | 
			
		||||
      <label for="categorie">Dégats:</label><label id="dmg-arme-actor"></label>
 | 
			
		||||
      <label>Dégats:</label><label id="dmg-arme-actor"></label>
 | 
			
		||||
      <label>Non Mortel</label>
 | 
			
		||||
      <input class="attribute-value" type="checkbox" id="coupsNonMortels" name="coupsNonMortels"  {{#if coupsNonMortels}}checked{{/if}}/>
 | 
			
		||||
    {{/if}}
 | 
			
		||||
    {{#if ajustements.attaqueDefenseurSurpris.used}}
 | 
			
		||||
    <label for="categorie" id="defenseur-surprise">{{ajustements.attaqueDefenseurSurpris.label}}</label>
 | 
			
		||||
    <label id="defenseur-surprise">{{ajustements.attaqueDefenseurSurpris.label}}</label>
 | 
			
		||||
    {{/if}}
 | 
			
		||||
  </div>
 | 
			
		||||
{{/if}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,14 +1,18 @@
 | 
			
		||||
<form class="dialog-roll-sort">
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <ul>
 | 
			
		||||
    <li><label for="categorie">Recette : {{recetteName}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Tâche Alchimique : {{alchimieTexte}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : {{selectedCarac.label}} / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label>Recette : {{recetteName}}</label></li>
 | 
			
		||||
    <li><label>Tâche Alchimique : {{alchimieTexte}}</label></li>
 | 
			
		||||
    <li><label>Jet : {{selectedCarac.label}} / {{competence.name}}</label></li>
 | 
			
		||||
  </ul>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
  <label>conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -16,7 +20,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
  <label>Difficulté </label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
    {{#select diffLibre}}
 | 
			
		||||
    {{#each difficultesLibres  as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<form class="skill-roll-dialog">
 | 
			
		||||
  <h2 class="compdialog" id="compdialogTitle"></h2>
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
  <label for="categorie">Difficulté libre</label>
 | 
			
		||||
    <label>Difficulté libre</label>
 | 
			
		||||
    <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
      {{#select diffLibre}}
 | 
			
		||||
      {{#each difficultesLibres as |key|}}
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
    <label>conditions</label>
 | 
			
		||||
    <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -17,7 +17,12 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
  <label class="diffMoral" for="categorie">Moral: {{#if (gt moral 0)}}+{{/if}}{{moral}}</label>
 | 
			
		||||
    <label class="diffMoral">Moral: {{#if (gt moral 0)}}+{{/if}}{{moral}}</label>
 | 
			
		||||
    <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
      <img class="imgAppelAuMoral small-button-container"
 | 
			
		||||
        src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
      <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  {{>"systems/foundryvtt-reve-de-dragon/templates/dialog-roll-surenc.html"}}
 | 
			
		||||
  <div id="tableAjustements">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,17 @@
 | 
			
		||||
<form class="dialog-roll-sort">
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <ul>
 | 
			
		||||
    <li><label for="categorie">Chant : {{chant.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : OUIE / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label>Chant : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label>Jet : OUIE / {{competence.name}}</label></li>
 | 
			
		||||
  </ul>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div> 
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
  <label>conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -15,7 +19,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
  <label>Difficulté </label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
    {{#select diffLibre}}
 | 
			
		||||
    {{#each difficultesLibres  as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,13 @@
 | 
			
		||||
<form class="dialog-roll-danse">
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
    <ul>
 | 
			
		||||
    <li><label for="categorie">Danse : {{danse.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : APPARENCE ou AGILITE / {{competence.name}}</label></li>
 | 
			
		||||
      <li><label>Danse : {{oeuvre.name}}</label></li>
 | 
			
		||||
      <li><label>Jet : APPARENCE ou AGILITE / {{competence.name}}</label></li>
 | 
			
		||||
    </ul>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
<label for="categorie">Caractéristique</label>
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
    <label>Caractéristique</label>
 | 
			
		||||
    <select name="carac" id="carac" class="select-diff" data-dtype="String">
 | 
			
		||||
      {{#select carac}}
 | 
			
		||||
      {{#each carac as |caracitem key|}}
 | 
			
		||||
@@ -14,9 +15,14 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
    <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
      <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
      <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
    <label>conditions</label>
 | 
			
		||||
    <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -24,7 +30,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
    <label>Difficulté </label>
 | 
			
		||||
    <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
      {{#select diffLibre}}
 | 
			
		||||
      {{#each difficultesLibres as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
    </ul>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
  <label for="categorie">Caractéristique</label>
 | 
			
		||||
    <label>Caractéristique</label>
 | 
			
		||||
    <select name="carac" id="carac" class="select-diff" data-dtype="String">
 | 
			
		||||
      {{#select carac}}
 | 
			
		||||
      {{#each carac as |caracitem key|}}
 | 
			
		||||
@@ -16,7 +16,13 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
    <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
      <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
      <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="form-group">
 | 
			
		||||
    <label>Conditions</label>
 | 
			
		||||
    <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -24,7 +30,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
    </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
    <label>Difficulté </label>
 | 
			
		||||
    <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
      {{#select diffLibre}}
 | 
			
		||||
      {{#each difficultesLibres as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,17 @@
 | 
			
		||||
<form class="dialog-roll-sort">
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <ul>
 | 
			
		||||
    <li><label for="categorie">Jouer une Musique : {{musique.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : OUIE / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label>Jouer une Musique : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label>Jet : OUIE / {{competence.name}}</label></li>
 | 
			
		||||
  </ul>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
  <label>conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -15,7 +19,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
  <label>Difficulté </label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
    {{#select diffLibre}}
 | 
			
		||||
    {{#each difficultesLibres  as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,17 @@
 | 
			
		||||
<form class="dialog-roll-sort">
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <ul>
 | 
			
		||||
    <li><label for="categorie">Interpréter une Oeuvre : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : {{upperFirst oeuvre.data.default_carac}} / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label>Interpréter une Oeuvre : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label>Jet : {{upperFirst oeuvre.data.default_carac}} / {{competence.name}}</label></li>
 | 
			
		||||
  </ul>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
  <label>conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -15,7 +19,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
  <label>Difficulté </label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
    {{#select diffLibre}}
 | 
			
		||||
    {{#each difficultesLibres  as |key|}}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,14 +2,18 @@
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <ul>
 | 
			
		||||
    <li><label for="categorie">Cuisiner : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Jet : ODORAT-GOUT / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label for="categorie">Exotisme : {{oeuvre.data.exotisme}}</label></li>
 | 
			
		||||
    <li><label>Cuisiner : {{oeuvre.name}}</label></li>
 | 
			
		||||
    <li><label>Jet : ODORAT-GOUT / {{competence.name}}</label></li>
 | 
			
		||||
    <li><label>Exotisme : {{oeuvre.data.exotisme}}</label></li>
 | 
			
		||||
  </ul>
 | 
			
		||||
  <div class="tooltipAppelAuMoral divAppelAuMoral">
 | 
			
		||||
    <img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
 | 
			
		||||
    <span class="tooltipAppelAuMoralText">Sans appel au moral</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="form-group">
 | 
			
		||||
  <label for="categorie">conditions</label>
 | 
			
		||||
  <label>conditions</label>
 | 
			
		||||
  <select name="diffConditions" id="diffConditions" data-dtype="number">
 | 
			
		||||
      {{#select diffConditions}}
 | 
			
		||||
      {{#each ajustementsConditions as |key|}}
 | 
			
		||||
@@ -17,7 +21,7 @@
 | 
			
		||||
      {{/each}}
 | 
			
		||||
      {{/select}}
 | 
			
		||||
  </select>
 | 
			
		||||
  <label for="categorie">Difficulté </label>
 | 
			
		||||
  <label>Difficulté </label>
 | 
			
		||||
  <select name="diffLibre" id="diffLibre" data-dtype="number">
 | 
			
		||||
    {{#select diffLibre}}
 | 
			
		||||
    {{#each difficultesLibres  as |key|}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user