diff --git a/module/actor.js b/module/actor.js index 677fea6f..959e5797 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2320,7 +2320,7 @@ export class RdDActor extends Actor { { oeuvre: oeuvre, art: oeuvre.type, - competence: duplicate(Misc.data(this.getCompetence(oeuvre.data.competence ?? artData.art))), + competence: duplicate(Misc.data(this.getCompetence(artData.compName ?? oeuvre.data.competence ?? artData.art))), diffLibre: - (oeuvre.data.niveau ?? 0), diffConditions: 0, use: { libre: false, conditions: true }, @@ -2402,8 +2402,8 @@ export class RdDActor extends Actor { async rollRecetteCuisine(id) { const oeuvre = Misc.data(this.getRecetteCuisine(id)); const artData = { - art: 'cuisine', verbe: 'Cuisiner', + compName: 'cuisine', proportions: 1, ajouterEquipement: false };