From f0af45d1067a8d282c85fc780e5a2f26256e7ec3 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 20 Apr 2021 00:52:25 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20exp=C3=A9rience=20sur=20/rdd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/module/actor.js b/module/actor.js index 20743110..ce985271 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1847,12 +1847,6 @@ export class RdDActor extends Actor { return 0; } - /* -------------------------------------------- */ - appliquerExperience(rollData) { - const callback = this.createCallbackExperience(); - if (callback.condition(rollData)) { callback.action(rollData); } - } - /* -------------------------------------------- */ createCallbackExperience() { return { @@ -2212,10 +2206,15 @@ export class RdDActor extends Actor { show: { title: options?.title ?? '' } }; await RdDResolutionTable.rollData(rollData); - this.appliquerExperience(rollData); + this._appliquerExperienceRollData(rollData); RdDResolutionTable.displayRollData(rollData, this) return rollData.rolled; } + /* -------------------------------------------- */ + _appliquerExperienceRollData(rollData) { + const callback = this.createCallbackExperience(); + if (callback.condition(rollData)) { callback.action(rollData); } + } /* -------------------------------------------- */ async rollCompetence(name) {