Merge branch 'v1.4-dialog' into 'v1.4'
Présentation des fenêtre de dialogue See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!211
This commit is contained in:
commit
3646fd2033
@ -1590,7 +1590,8 @@ export class RdDActor extends Actor {
|
|||||||
etat: this.getEtatGeneral({ ethylisme: true }),
|
etat: this.getEtatGeneral({ ethylisme: true }),
|
||||||
diffNbDoses: -Number(actorData.data.compteurs.ethylisme.nb_doses || 0),
|
diffNbDoses: -Number(actorData.data.compteurs.ethylisme.nb_doses || 0),
|
||||||
finalLevel: 0,
|
finalLevel: 0,
|
||||||
diffConditions: 0
|
diffConditions: 0,
|
||||||
|
ajustementsForce: CONFIG.RDD.difficultesLibres,
|
||||||
}
|
}
|
||||||
let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-roll-ethylisme.html', rollData);
|
let html = await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/dialog-roll-ethylisme.html', rollData);
|
||||||
new RdDRollDialogEthylisme(html, rollData, this, r => this.performEthylisme(r)).render(true);
|
new RdDRollDialogEthylisme(html, rollData, this, r => this.performEthylisme(r)).render(true);
|
||||||
@ -2334,16 +2335,20 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
console.log("rollArt !!!", artData);
|
console.log("rollArt !!!", artData);
|
||||||
|
|
||||||
const dialog = await RdDRoll.create(this, artData, { html: `systems/foundryvtt-reve-de-dragon/templates/dialog-roll-${artData.art}.html` }, {
|
const dialog = await RdDRoll.create(this, artData,
|
||||||
name: `jet-${artData.art}`,
|
{
|
||||||
label: `${artData.verbe} ${oeuvre.name}`,
|
html: `systems/foundryvtt-reve-de-dragon/templates/dialog-roll-${oeuvre.type}.html`,
|
||||||
height: 600,
|
options: { height: 500, }
|
||||||
callbacks: [
|
},
|
||||||
this.createCallbackExperience(),
|
{
|
||||||
this.createCallbackAppelAuMoral(),
|
name: `jet-${artData.art}`,
|
||||||
{ action: r => callBackResult(r) }
|
label: `${artData.verbe} ${oeuvre.name}`,
|
||||||
]
|
callbacks: [
|
||||||
});
|
this.createCallbackExperience(),
|
||||||
|
this.createCallbackAppelAuMoral(),
|
||||||
|
{ action: r => callBackResult(r) }
|
||||||
|
]
|
||||||
|
});
|
||||||
dialog.render(true);
|
dialog.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2395,13 +2400,13 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollRecetteCuisine(id) {
|
async rollRecetteCuisine(id) {
|
||||||
|
const oeuvre = Misc.data(this.getRecetteCuisine(id));
|
||||||
const artData = {
|
const artData = {
|
||||||
art: 'cuisine',
|
art: 'cuisine',
|
||||||
verbe: 'Cuisiner',
|
verbe: 'Cuisiner',
|
||||||
proportions: 1,
|
proportions: 1,
|
||||||
ajouterEquipement: false
|
ajouterEquipement: false
|
||||||
};
|
};
|
||||||
const oeuvre = Misc.data(this.getRecetteCuisine(id));
|
|
||||||
await this._rollArt(artData, 'odoratgout', oeuvre, r => this._resultRecetteCuisine(r));
|
await this._rollArt(artData, 'odoratgout', oeuvre, r => this._resultRecetteCuisine(r));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2481,16 +2486,20 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
console.log("rollMeditation !!!", meditationData);
|
console.log("rollMeditation !!!", meditationData);
|
||||||
|
|
||||||
const dialog = await RdDRoll.create(this, meditationData, { html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html' }, {
|
const dialog = await RdDRoll.create(this, meditationData,
|
||||||
name: 'jet-meditation',
|
{
|
||||||
label: 'Jet de Meditation ' + meditation.name,
|
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html',
|
||||||
height: 600,
|
options: { height: 575, }
|
||||||
callbacks: [
|
},
|
||||||
this.createCallbackExperience(),
|
{
|
||||||
{ condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) },
|
name: 'jet-meditation',
|
||||||
{ action: r => this._meditationResult(r) }
|
label: "Jet de méditation",
|
||||||
]
|
callbacks: [
|
||||||
});
|
this.createCallbackExperience(),
|
||||||
|
{ condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) },
|
||||||
|
{ action: r => this._meditationResult(r) }
|
||||||
|
]
|
||||||
|
});
|
||||||
dialog.render(true);
|
dialog.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ export class RdDRollDialogEthylisme extends Dialog {
|
|||||||
default: "rollButton",
|
default: "rollButton",
|
||||||
buttons: { "rollButton": { label: "Test d'éthylisme", callback: html => this.onButton(html) } }
|
buttons: { "rollButton": { label: "Test d'éthylisme", callback: html => this.onButton(html) } }
|
||||||
};
|
};
|
||||||
let dialogOptions = { classes: ["rdddialog"], width: 400, height: 220, 'z-index': 99999 }
|
let dialogOptions = { classes: ["rdddialog"], width: 400, height: 270, 'z-index': 99999 }
|
||||||
super(dialogConf, dialogOptions)
|
super(dialogConf, dialogOptions)
|
||||||
|
|
||||||
//console.log("ETH", rollData);
|
//console.log("ETH", rollData);
|
||||||
@ -36,28 +36,27 @@ export class RdDRollDialogEthylisme extends Dialog {
|
|||||||
this.bringToTop(); // Ensure top level
|
this.bringToTop(); // Ensure top level
|
||||||
// Get the rollData stuff
|
// Get the rollData stuff
|
||||||
var rollData = this.rollData;
|
var rollData = this.rollData;
|
||||||
|
var dialog = this;
|
||||||
function updateRollResult(rollData) {
|
|
||||||
|
|
||||||
rollData.finalLevel = Number(rollData.etat) + Number(rollData.forceAlcool) + rollData.diffNbDoses;
|
|
||||||
|
|
||||||
// Mise à jour valeurs
|
|
||||||
$("#roll-param").text(rollData.vieValue + " / " + Misc.toSignedString(rollData.finalLevel));
|
|
||||||
$(".table-resolution").remove();
|
|
||||||
$("#resolutionTable").append(RdDResolutionTable.buildHTMLTableExtract(rollData.vieValue, rollData.finalLevel));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Setup everything onload
|
// Setup everything onload
|
||||||
$(function () {
|
$(function () {
|
||||||
$("#forceAlcool").val(Misc.toInt(rollData.forceAlcool));
|
$("#forceAlcool").val(Misc.toInt(rollData.forceAlcool));
|
||||||
updateRollResult(rollData);
|
dialog.updateRollResult();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update !
|
// Update !
|
||||||
html.find('#forceAlcool').change((event) => {
|
html.find('#forceAlcool').change((event) => {
|
||||||
rollData.forceAlcool = Misc.toInt(event.currentTarget.value); // Update the selected bonus/malus
|
rollData.forceAlcool = Misc.toInt(event.currentTarget.value); // Update the selected bonus/malus
|
||||||
updateRollResult(rollData);
|
dialog.updateRollResult();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
async updateRollResult() {
|
||||||
|
|
||||||
|
this.rollData.finalLevel = Number(this.rollData.etat) + Number(this.rollData.forceAlcool) + this.rollData.diffNbDoses;
|
||||||
|
|
||||||
|
// Mise à jour valeurs
|
||||||
|
$("#roll-param").text(this.rollData.vieValue + " / " + Misc.toSignedString(this.rollData.finalLevel));
|
||||||
|
$(".table-resolution").remove();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -655,7 +655,7 @@ export class RdDTMRDialog extends Dialog {
|
|||||||
const dialog = await RdDRoll.create(this.actor, rollData,
|
const dialog = await RdDRoll.create(this.actor, rollData,
|
||||||
{
|
{
|
||||||
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html',
|
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html',
|
||||||
options: { height: 350 },
|
options: { height: 420 },
|
||||||
close: html => { this.maximize(); } // Re-display TMR
|
close: html => { this.maximize(); } // Re-display TMR
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1292,6 +1292,9 @@ display: inline-flex;
|
|||||||
.tooltip {
|
.tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-dotted {
|
||||||
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
|
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1332,9 +1335,16 @@ display: inline-flex;
|
|||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip-nobottom {
|
.tooltip .ttt-titre {
|
||||||
border-bottom: unset; /* If you want dots under the hoverable text */
|
text-align: justify;
|
||||||
|
width: 100%;
|
||||||
|
top: 30px;
|
||||||
|
background: rgba(220,220,210,0.95);
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip .ttt-xp {
|
.tooltip .ttt-xp {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background: rgba(220,220,210,0.95);
|
background: rgba(220,220,210,0.95);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<img class="sheet-competence-img" src="{{img}}" />
|
<img class="sheet-competence-img" src="{{img}}" />
|
||||||
{{#if data.isLevelUp}}
|
{{#if data.isLevelUp}}
|
||||||
<span class="competence-label tooltip tooltip-nobottom">
|
<span class="competence-label tooltip">
|
||||||
<span class="tooltiptext ttt-xp">
|
<span class="tooltiptext ttt-xp">
|
||||||
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
Vous pouvez dépenser {{data.xpNext}} points d'Experience pour augmenter de 1 votre compétence {{name}}
|
||||||
</span>
|
</span>
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="tooltip">Malus de fatigue : {{calc.fatigue.malus}}
|
<span class="tooltip tooltip-dotted">Malus de fatigue : {{calc.fatigue.malus}}
|
||||||
<span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span>
|
<span class="tooltiptext ttt-fatigue">{{{calc.fatigue.html}}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span>{{calc.resumeBlessures}}</span>
|
<span>{{calc.resumeBlessures}}</span>
|
||||||
@ -134,13 +134,13 @@
|
|||||||
<label class="carac-xp flexrow"/>
|
<label class="carac-xp flexrow"/>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if carac.isLevelUp}}
|
{{#if carac.isLevelUp}}
|
||||||
<span class="carac-label flexrow tooltip tooltip-nobottom" name="data.carac.{{key}}.label">
|
<span class="carac-label flexrow tooltip" name="data.carac.{{key}}.label">
|
||||||
<span class="tooltiptext ttt-xp">
|
<span class="tooltiptext ttt-xp">
|
||||||
Vous pouvez dépenser {{carac.xpNext}} points d'Experience pour augmenter de 1 votre caractéristique {{carac.label}}
|
Vous pouvez dépenser {{carac.xpNext}} points d'Experience pour augmenter de 1 votre caractéristique {{carac.label}}
|
||||||
</span>
|
</span>
|
||||||
<a name={{key}}>{{carac.label}}</a></span>
|
<a name={{key}}>{{carac.label}}</a></span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="carac-label flexrow tooltip tooltip-nobottom" name="data.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
<span class="carac-label flexrow tooltip" name="data.carac.{{key}}.label"><a name={{key}}>{{carac.label}}</a></span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<input class="carac-value flexrow" type="text" name="data.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
<input class="carac-value flexrow" type="text" name="data.carac.{{key}}.value" value="{{carac.value}}" data-dtype="{{carac.type}}" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||||
<input class="carac-xp flexrow" type="text" name="data.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
<input class="carac-xp flexrow" type="text" name="data.carac.{{key}}.xp" value="{{carac.xp}}" data-dtype="number" {{#unless @root.options.editCaracComp}}disabled{{/unless}} />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<span {{#if ajustements}}class="tooltip" {{/if}}>
|
<span {{#if ajustements}}class="tooltip tooltip-dotted" {{/if}}>
|
||||||
{{rolled.caracValue}} à {{numberFormat rolled.finalLevel decimals=0 sign=true}}
|
{{rolled.caracValue}} à {{numberFormat rolled.finalLevel decimals=0 sign=true}}
|
||||||
{{#if ajustements}}
|
{{#if ajustements}}
|
||||||
<div class="tooltiptext ttt-ajustements">
|
<div class="tooltiptext ttt-ajustements">
|
||||||
|
@ -1,87 +1,84 @@
|
|||||||
<form class="skill-roll-dialog">
|
<form class="skill-roll-dialog">
|
||||||
<h2 class="dialog-roll-title"></h2>
|
<h2 class="dialog-roll-title"></h2>
|
||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
||||||
<div class="flexrow">
|
|
||||||
<label>Caractéristique</label>
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
|
||||||
</div>
|
|
||||||
{{#if arme}}
|
|
||||||
{{#if attackerRoll}}
|
|
||||||
{{#if attackerRoll.tactique}}
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Tactique: </label><label>{{attackerRoll.tactique}}</label>
|
<label>Caractéristique</label>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
||||||
|
</div>
|
||||||
|
{{#if arme}}
|
||||||
|
{{#if attackerRoll}}
|
||||||
|
{{#if attackerRoll.tactique}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Tactique: </label><label>{{attackerRoll.tactique}}</label>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Tactique:</label>
|
||||||
|
<span class="tooltip tooltip-dotted">
|
||||||
|
<select class="select-by-name" name="tactique" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
||||||
|
<option value="Attaque normale">Attaque normale</option>
|
||||||
|
<option value="charge">Charge</option>
|
||||||
|
<option value="feinte">Feinte</option>
|
||||||
|
</select>
|
||||||
|
<div class="tooltiptext ttt-ajustements">
|
||||||
|
<div>
|
||||||
|
<strong>Charge</strong> : Les longueurs d'armes n'interviennent pas dans la charge, il faut gérer une initiative aléatoire dans ce cas.
|
||||||
|
<br><strong>Feinte</strong> : Vous devez avoir l'initative sur votre adversaire et y renoncer.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if ajustements.attaqueDefenseurSurpris.used}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<label id="defenseur-surprise">{{ajustements.attaqueDefenseurSurpris.label}}</label>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{/if}}
|
||||||
<div class="flexrow">
|
|
||||||
<label>Tactique:</label>
|
|
||||||
<span class="tooltip">
|
|
||||||
<select class="select-by-name" name="tactique" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
|
||||||
<option value="Attaque normale">Attaque normale</option>
|
|
||||||
<option value="charge">Charge</option>
|
|
||||||
<option value="feinte">Feinte</option>
|
|
||||||
</select>
|
|
||||||
<div class="tooltiptext ttt-ajustements">
|
|
||||||
<div>
|
|
||||||
<strong>Charge</strong> : Les longueurs d'armes n'interviennent pas dans la charge, il faut gérer une initiative aléatoire dans ce cas.
|
|
||||||
<br><strong>Feinte</strong> : Vous devez avoir l'initative sur votre adversaire et y renoncer.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if ajustements.attaqueDefenseurSurpris.used}}
|
|
||||||
<div class="flexrow">
|
|
||||||
<label id="defenseur-surprise">{{ajustements.attaqueDefenseurSurpris.label}}</label>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
{{#unless attackerRoll}}
|
{{#unless attackerRoll}}
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
{{#if (eq arme.data.mortalite 'non-mortel')}}
|
{{#if (eq arme.data.mortalite 'non-mortel')}}
|
||||||
<label>Dégats:</label><label class="dmg-arme-actor"></label>
|
<label>Dégats:</label><label class="dmg-arme-actor"></label>
|
||||||
{{else}}
|
{{else}}
|
||||||
<label>Dégats:
|
<label>Dégats:
|
||||||
</label>
|
|
||||||
<span>
|
|
||||||
<input class="attribute-value" type="checkbox" id="coupsNonMortels" name="coupsNonMortels" {{#if coupsNonMortels}}checked{{/if}}/>
|
|
||||||
<label class="dmg-arme-actor">
|
|
||||||
</label>
|
</label>
|
||||||
</span>
|
<span>
|
||||||
{{/if}}
|
<input class="attribute-value" type="checkbox" id="coupsNonMortels" name="coupsNonMortels" {{#if coupsNonMortels}}checked{{/if}}/>
|
||||||
</div>
|
<label class="dmg-arme-actor">
|
||||||
{{/unless}}
|
</label>
|
||||||
{{/if}}
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.html"}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.html"}}
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-enctotal.html"}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-enctotal.html"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
{{#if attackerRoll}}
|
{{#if attackerRoll}}
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Difficulté</label>
|
<label>Difficulté</label>
|
||||||
<label>{{diffLibre}}</label>
|
<label>{{diffLibre}}</label>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.html"}}
|
||||||
|
{{/if}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.html"}}
|
|
||||||
{{/if}}
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
|
||||||
<div id="tableAjustements" class="flexrow"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div id="tableResolution"></div>
|
||||||
|
<div id="tableProbaReussite"></div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{{log 'recette alchimique' this}}
|
|
||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
<h2>Fabrication: {{recette.name}}</h2>
|
<h2>Fabrication: {{recette.name}}</h2>
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
|
@ -1,31 +1,29 @@
|
|||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
<h2>Chanter: {{oeuvre.name}}</h2>
|
<h2>Chanter: {{oeuvre.name}}</h2>
|
||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<label>Caractéristique: </label><label class="flex-grow">{{selectedCarac.label}}</label>
|
<label>Caractéristique: </label><label class="flex-grow">{{selectedCarac.label}}</label>
|
||||||
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
||||||
|
</div>
|
||||||
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
||||||
</div>
|
</div>
|
||||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
<div class="flex-group-left">
|
||||||
</div>
|
<div class="flexrow">
|
||||||
<div class="flex-group-left">
|
<label>Difficulté</label>
|
||||||
<div class="flexrow">
|
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||||
<label>Difficulté</label>
|
</div>
|
||||||
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
</div>
|
</div>
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
|
||||||
<div id="tableAjustements" class="flexrow"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableResolution">
|
<div id="tableResolution"></div>
|
||||||
</div>
|
<div id="tableProbaReussite"></div>
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
</script>
|
</script>
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<label for="carac">Caractéristique:</label>{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
<label for="carac">Caractéristique:</label>{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
||||||
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
||||||
@ -21,10 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tableResolution">
|
<div id="tableResolution"></div>
|
||||||
</div>
|
<div id="tableProbaReussite"></div>
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,29 +1,19 @@
|
|||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
|
<h2>Boire</h2>
|
||||||
<div class="form-group">
|
<img class="chat-icon" src="systems/foundryvtt-reve-de-dragon/icons/objets/chope_gres.webp" alt="Chope d'alcool"/>
|
||||||
<label>Vie : {{vieValue}}</label>
|
<div class="grid grid-2col">
|
||||||
<label>Etat général : {{etat}}</label>
|
<label>Vie</label><label class="flexrow"> {{vieValue}}</label>
|
||||||
<label>Déjà bu : {{diffNbDoses}}</label>
|
<label>Etat général</label><label class="flexrow">{{etat}}</label>
|
||||||
</div>
|
<label>Déjà bu</label><label class="flexrow">{{diffNbDoses}}</label>
|
||||||
|
<label>Force du breuvage</label>
|
||||||
<div class="form-group" id="div-sort-difficulte">
|
|
||||||
<label>Force du breuvage </label>
|
|
||||||
<select name="forceAlcool" id="forceAlcool" data-dtype="number">
|
<select name="forceAlcool" id="forceAlcool" data-dtype="number">
|
||||||
{{#select forceAlcool}}
|
{{#select forceAlcool}}
|
||||||
{{#each ajustementsConditions as |key|}}
|
{{#each ajustementsForce as |key|}}
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
<option value={{key}}>{{key}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
|
<label>Ajustement final</label><label id="roll-param">10 / 0</label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Ajustement final : <label id="roll-param">10 / 0</label> <label name="addon-message" id="addon-message"></label></label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
||||||
|
|
||||||
<div id="tableResolution">
|
<div id="tableResolution"></div>
|
||||||
</div>
|
<div id="tableProbaReussite"></div>
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,28 +1,26 @@
|
|||||||
<form class="skill-roll-dialog">
|
<form class="skill-roll-dialog">
|
||||||
<div class="form-group">
|
<h2>Maîtrise {{tmr.label}} ({{tmr.coord}})</h2>
|
||||||
<label>{{tmr.label}} ({{tmr.coord}})</label>
|
<div class="grid grid-2col">
|
||||||
<label>Rêve actuel à {{diffLibre}}</label>
|
<div class="flex-group-left">
|
||||||
<span>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
||||||
|
<div class="grid grid-2col">
|
||||||
|
<label for="carac">Rêve actuel:</label><label class="flex-grow" name="carac">{{selectedCarac.value}}</label>
|
||||||
|
<label for="draconic">{{competence.name}}:</label><label class="flex-grow" name="draconic">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex-group-left">
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Difficulté</label>
|
||||||
|
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||||
|
</div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<label>Conditions</label>
|
<div id="tableResolution"></div>
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
<div id="tableProbaReussite"></div>
|
||||||
{{#select diffConditions}}
|
</form>
|
||||||
{{#each ajustementsConditions as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
<script>
|
||||||
{{/each}}
|
</script>
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.html"}}
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,63 +1,48 @@
|
|||||||
<form class="dialog-roll-meditation">
|
<form class="dialog-roll-meditation">
|
||||||
<div class="form-group">
|
<h2>{{meditation.name}}</h2>
|
||||||
<ul class="item-list">
|
<div class="grid grid-2col">
|
||||||
<li class="item flexrow">
|
<div class="flex-group-left">
|
||||||
<label><strong>Thème : {{meditation.data.theme}} </strong></label>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<label>Intellect {{numberFormat carac.intellect.value decimals=0 sign=false}} / {{competence.name}} {{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
<div class="flexcol">
|
||||||
</li>
|
<label><strong>{{meditation.data.theme}}</strong></label>
|
||||||
<li class="item flexrow">
|
<hr>
|
||||||
<label>Sujet : {{competence.name}} ({{meditation.data.theme}})</label>
|
<label>Support: <strong>{{upperFirst meditation.data.support}}</strong></label>
|
||||||
<label>Durée : 60 minutes</label>
|
<label>Case TMR: <strong>{{upperFirst meditation.data.tmr}}</strong></label>
|
||||||
</li>
|
<label>Durée: 60 minutes</label>
|
||||||
<li class="item flexrow">
|
<hr>
|
||||||
<label>Support : {{meditation.data.support}}</label>
|
<label>Intellect / {{competence.name}}:
|
||||||
<label>Malus spécial : {{meditation.data.malus}}</label>
|
{{numberFormat carac.intellect.value decimals=0 sign=false}} / {{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
||||||
</li>
|
</div>
|
||||||
<li class="item flexrow"><label>Case TMR : {{meditation.data.tmr}}</label></li>
|
</div>
|
||||||
</ul>
|
<div class="flex-group-left">
|
||||||
</div>
|
<div class="flexrow">
|
||||||
|
<label><strong>Conditions Optionnelles : </strong></label>
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Comportement antérieur : {{upperFirst meditation.data.comportement}}</label>
|
||||||
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isComportement" {{#if conditionMeditation.isComportement}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Heure : {{upperFirst meditation.data.heure}}</label>
|
||||||
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Purification : {{upperFirst meditation.data.purification}}</label>
|
||||||
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Vêture : {{upperFirst meditation.data.veture}}</label>
|
||||||
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
<div id="tableAjustements"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div id="tableResolution"></div>
|
||||||
<label class="h4"><strong>Conditions Optionnelles : </strong></label>
|
<div id="tableProbaReussite"></div>
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<ul class="item-list">
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Heure : {{meditation.data.heure}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Purification : {{meditation.data.purification}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Vêture : {{meditation.data.veture}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Comportement antérieur : {{meditation.data.comportement}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isComportement" {{#if conditionMeditation.isComportement}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<label>Conditions supplémentaires : </label>
|
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
|
||||||
{{#select diffConditions}}
|
|
||||||
{{#each ajustementsConditions as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
</script>
|
</script>
|
@ -1,40 +1,28 @@
|
|||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
<div class="form-group">
|
<h2>Interpréter la mélodie: {{oeuvre.name}}</h2>
|
||||||
<ul>
|
|
||||||
<li><label>Jouer une Musique : {{oeuvre.name}}</label></li>
|
<div class="grid grid-2col">
|
||||||
<li><label>Jet : OUIE / {{competence.name}}</label></li>
|
<div class="flex-group-left">
|
||||||
</ul>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<div class="tooltipAppelAuMoral divAppelAuMoral">
|
<div class="grid grid-2col">
|
||||||
<img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
|
<label>Caractéristique: </label><label class="flex-grow">{{selectedCarac.label}}</label>
|
||||||
<span class="tooltipAppelAuMoralText">Sans appel au moral</span>
|
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
||||||
|
</div>
|
||||||
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
||||||
|
</div>
|
||||||
|
<div class="flex-group-left">
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Difficulté</label>
|
||||||
|
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||||
|
</div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div id="tableResolution"></div>
|
||||||
<label>conditions</label>
|
<div id="tableProbaReussite"></div>
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
|
||||||
{{#select diffConditions}}
|
|
||||||
{{#each ajustementsConditions as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
<label>Difficulté </label>
|
|
||||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
|
||||||
{{#select diffLibre}}
|
|
||||||
{{#each difficultesLibres as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,40 +1,29 @@
|
|||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
<div class="form-group">
|
<h2>Interpréter une Œuvre: {{oeuvre.name}}</h2>
|
||||||
<ul>
|
|
||||||
<li><label>Interpréter une Oeuvre : {{oeuvre.name}}</label></li>
|
<div class="grid grid-2col">
|
||||||
<li><label>Jet : {{upperFirst oeuvre.data.default_carac}} / {{competence.name}}</label></li>
|
<div class="flex-group-left">
|
||||||
</ul>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<div class="tooltipAppelAuMoral divAppelAuMoral">
|
<div class="grid grid-2col">
|
||||||
<img class="imgAppelAuMoral small-button-container" src="/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg">
|
<label>Caractéristique: </label><label class="flex-grow">{{selectedCarac.label}}
|
||||||
<span class="tooltipAppelAuMoralText">Sans appel au moral</span>
|
</label>
|
||||||
|
<label>{{competence.name}}:</label><label class="flex-grow">{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
||||||
|
</div>
|
||||||
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
||||||
|
</div>
|
||||||
|
<div class="flex-group-left">
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Difficulté</label>
|
||||||
|
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||||
|
</div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div id="tableResolution"></div>
|
||||||
<label>conditions</label>
|
<div id="tableProbaReussite"></div>
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
|
||||||
{{#select diffConditions}}
|
|
||||||
{{#each ajustementsConditions as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
<label>Difficulté </label>
|
|
||||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
|
||||||
{{#select diffLibre}}
|
|
||||||
{{#each difficultesLibres as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,58 +1,46 @@
|
|||||||
<form class="rdddialog">
|
<form class="rdddialog">
|
||||||
|
<h2 class="tooltip" style="width: 100%;">Cuisiner: {{oeuvre.name}}
|
||||||
|
<div class="tooltiptext ttt-titre">
|
||||||
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-poesie.html" oeuvre.data}}
|
||||||
|
</div>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<ul>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<li><label>Cuisiner : {{oeuvre.name}}</label></li>
|
<div>
|
||||||
<li><label>Jet : ODORAT-GOUT / {{competence.name}}</label></li>
|
<div class="flexrow">
|
||||||
<li><label>Exotisme : {{oeuvre.data.exotisme}}</label></li>
|
<label>Caractéristique: </label><label>{{selectedCarac.label}}</label>
|
||||||
</ul>
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>{{competence.name}}: </label><label>{{numberFormat competence.data.niveau decimals=0 sign=true}}</label></label>
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Exotisme: </label><label>{{oeuvre.data.exotisme}}</label>
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label for="proportions">Proportions: </label>
|
||||||
|
<input class="cuisine-proportions" type="number" size="4" name="proportions" value="{{proportions}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label for="ajouterEquipement">Ajouter à l'équipement</label>
|
||||||
|
<input class="checkbox-by-name" type="checkbox" name="ajouterEquipement" {{#if ajouterEquipement}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label class="competence-label">Multiplier les proportions</label>
|
<label>Difficulté</label>
|
||||||
<input class="competence-value cuisine-proportions" type="number" size="4" name="proportions" value="{{proportions}}" data-dtype="Number" />
|
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="flexrow">
|
|
||||||
<label class="competence-label">Ajouter à l'équipement</label>
|
|
||||||
<input class="checkbox-by-name" type="checkbox" name="ajouterEquipement" {{#if ajouterEquipement}}checked{{/if}} />
|
|
||||||
</div>
|
</div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html"}}
|
||||||
|
<div id="tableAjustements" class="flexrow"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-3col">
|
|
||||||
<div class="flex-group-left">
|
<div id="tableResolution"></div>
|
||||||
<label>Conditions</label>
|
<div id="tableProbaReussite"></div>
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
|
||||||
{{#select diffConditions}}
|
|
||||||
{{#each ajustementsConditions as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="flex-group-left">
|
|
||||||
<label>Difficulté</label>
|
|
||||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
|
||||||
{{#select diffLibre}}
|
|
||||||
{{#each difficultesLibres as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="flex-group-right flexrow">
|
|
||||||
<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>
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
<form class="resolution-roll-dialog">
|
<form class="resolution-roll-dialog">
|
||||||
<div class="grid grid-4col">
|
<div class="grid grid-4col">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Caractéristique</label>
|
<label>Caractéristique</label>
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
|
||||||
|
</div>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.html"}}
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
<button id="lancer" type="button">Lancer les dés</button>
|
||||||
</div>
|
</div>
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.html"}}
|
<div id="tableResolution"></div>
|
||||||
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
<div id="tableProbaReussite"></div>
|
||||||
<button id="lancer" type="button">Lancer les dés</button>
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
@ -1,67 +1,65 @@
|
|||||||
<form class="dialog-roll-sort">
|
<form class="dialog-roll-sort">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Rêve : <label>{{numberFormat selectedCarac.value decimals=0 sign=false}}</label></label>
|
<label>Rêve : <label>{{numberFormat selectedCarac.value decimals=0 sign=false}}</label></label>
|
||||||
<label>TMR : {{tmr.label}} ({{tmr.coord}})</label>
|
<label>TMR : {{tmr.label}} ({{tmr.coord}})</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Draconic </label>
|
<label>Draconic </label>
|
||||||
<select name="draconic" id="draconic" data-dtype="String">
|
<select name="draconic" id="draconic" data-dtype="String">
|
||||||
{{#select draconic}}
|
{{#select draconic}}
|
||||||
{{#each draconicList as |draconic key|}}
|
{{#each draconicList as |draconic key|}}
|
||||||
<option value={{key}}>{{draconic.name}} : {{draconic.data.niveau}}</option>
|
<option value={{key}}>{{draconic.name}} : {{draconic.data.niveau}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
<label> Conditions</label>
|
<label> Conditions</label>
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
||||||
{{#select diffConditions}}
|
{{#select diffConditions}}
|
||||||
{{#each ajustementsConditions as |key|}}
|
{{#each ajustementsConditions as |key|}}
|
||||||
|
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Sort </label>
|
||||||
|
<select name="sort" id="sort" data-dtype="String">
|
||||||
|
{{#select sort}}
|
||||||
|
{{#each sortList as |sort key|}}
|
||||||
|
<option value={{key}}>{{this.name}} - {{#if this.data.caseTMRspeciale}} {{this.data.caseTMRspeciale}} {{else}}{{this.data.caseTMR}}{{/if}} / R{{this.data.difficulte}} r {{sort.data.ptreve}} ({{sort.data.draconic}})</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group" id="div-sort-difficulte">
|
||||||
|
<label>Difficulté </label>
|
||||||
|
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
||||||
|
{{#select diffLibre}}
|
||||||
|
{{#each difficultesLibres as |key|}}
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group" id="div-sort-ptreve">
|
||||||
<label>Sort </label>
|
<label>Couts en Points de Rêve </label>
|
||||||
<select name="sort" id="sort" data-dtype="String">
|
<select name="ptreve-variable" id="ptreve-variable" data-dtype="number">
|
||||||
{{#select sort}}
|
{{#select ptreve-variable}}
|
||||||
{{#each sortList as |sort key|}}
|
{{#each coutreve as |cout key|}}
|
||||||
<option value={{key}}>{{this.name}} - {{#if this.data.caseTMRspeciale}} {{this.data.caseTMRspeciale}} {{else}}{{this.data.caseTMR}}{{/if}} / R{{this.data.difficulte}} r {{sort.data.ptreve}} ({{sort.data.draconic}})</option>
|
<option value={{cout}}>{{cout}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" id="div-sort-difficulte">
|
<div id="tableAjustements">
|
||||||
<label>Difficulté </label>
|
</div>
|
||||||
<select name="diffLibre" id="diffLibre" data-dtype="number">
|
<div id="tableResolution"></div>
|
||||||
{{#select diffLibre}}
|
<div id="tableProbaReussite"></div>
|
||||||
{{#each difficultesLibres as |key|}}
|
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group" id="div-sort-ptreve">
|
|
||||||
<label>Couts en Points de Rêve </label>
|
|
||||||
<select name="ptreve-variable" id="ptreve-variable" data-dtype="number">
|
|
||||||
{{#select ptreve-variable}}
|
|
||||||
{{#each coutreve as |cout key|}}
|
|
||||||
<option value={{cout}}>{{cout}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution">
|
|
||||||
</div>
|
|
||||||
<div id="tableProbaReussite">
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="table-ajustement">
|
<div class="table-ajustement">
|
||||||
<span class="tooltip">
|
<span class="tooltip tooltip-dotted">
|
||||||
<span>Ajustement Final:</span>
|
<span>Ajustement Final:</span>
|
||||||
<span id="roll-param">{{selectedCarac.value}} / {{numberFormat finalLevel decimals=0 sign=true}}</span>
|
<span id="roll-param">{{selectedCarac.value}} / {{numberFormat finalLevel decimals=0 sign=true}}</span>
|
||||||
<div class="tooltiptext ttt-ajustements">
|
<div class="tooltiptext ttt-ajustements">
|
||||||
|
Loading…
Reference in New Issue
Block a user