From 208dfef83fa1c44c6f40699d04a084718b8d0e40 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 23 Apr 2021 02:47:18 +0200 Subject: [PATCH] Fix cuisine/recettecuisine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Utiliser le nom de la compétence ou le nom de l'objet --- module/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };