forked from public/foundryvtt-reve-de-dragon
Rework cuisine
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user