Rework cuisine
This commit is contained in:
parent
70b3feede8
commit
b663560b53
@ -2335,10 +2335,14 @@ export class RdDActor extends Actor {
|
||||
|
||||
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,
|
||||
{
|
||||
html: `systems/foundryvtt-reve-de-dragon/templates/dialog-roll-${oeuvre.type}.html`,
|
||||
options: { height: 500, }
|
||||
},
|
||||
{
|
||||
name: `jet-${artData.art}`,
|
||||
label: `${artData.verbe} ${oeuvre.name}`,
|
||||
height: 600,
|
||||
callbacks: [
|
||||
this.createCallbackExperience(),
|
||||
this.createCallbackAppelAuMoral(),
|
||||
@ -2396,13 +2400,13 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async rollRecetteCuisine(id) {
|
||||
const oeuvre = Misc.data(this.getRecetteCuisine(id));
|
||||
const artData = {
|
||||
art: 'cuisine',
|
||||
verbe: 'Cuisiner',
|
||||
proportions: 1,
|
||||
ajouterEquipement: false
|
||||
};
|
||||
const oeuvre = Misc.data(this.getRecetteCuisine(id));
|
||||
await this._rollArt(artData, 'odoratgout', oeuvre, r => this._resultRecetteCuisine(r));
|
||||
}
|
||||
|
||||
|
@ -1,54 +1,44 @@
|
||||
<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="flex-group-left">
|
||||
<ul>
|
||||
<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>
|
||||
<div class="flex-group-left">
|
||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||
<div>
|
||||
<div class="flexrow">
|
||||
<label class="competence-label">Multiplier les proportions</label>
|
||||
<input class="competence-value cuisine-proportions" type="number" size="4" name="proportions" value="{{proportions}}" data-dtype="Number" />
|
||||
|
||||
<label>Caractéristique: </label><label>{{selectedCarac.label}}</label>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<label class="competence-label">Ajouter à l'équipement</label>
|
||||
<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 class="grid grid-3col">
|
||||
<div class="flex-group-left">
|
||||
<label>Conditions</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 class="flex-group-left">
|
||||
<div class="flexrow">
|
||||
<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>
|
||||
<label>{{numberFormat diffLibre decimals=0 sign=true}}</label>
|
||||
</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>
|
||||
{{>"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="tableAjustements">
|
||||
</div>
|
||||
|
||||
<div id="tableResolution"></div>
|
||||
<div id="tableProbaReussite"></div>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user