diff --git a/module/actor.js b/module/actor.js index e1715786..677fea6f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2335,16 +2335,20 @@ 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` }, { - name: `jet-${artData.art}`, - label: `${artData.verbe} ${oeuvre.name}`, - height: 600, - callbacks: [ - this.createCallbackExperience(), - this.createCallbackAppelAuMoral(), - { action: r => callBackResult(r) } - ] - }); + 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}`, + callbacks: [ + this.createCallbackExperience(), + this.createCallbackAppelAuMoral(), + { action: r => callBackResult(r) } + ] + }); dialog.render(true); } @@ -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)); } diff --git a/templates/dialog-roll-recettecuisine.html b/templates/dialog-roll-recettecuisine.html index 8ad1d093..a8316dbb 100644 --- a/templates/dialog-roll-recettecuisine.html +++ b/templates/dialog-roll-recettecuisine.html @@ -1,54 +1,44 @@