From 62eb6482d033eb9111a98cb8d80c15ddd0a72425 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 12 May 2021 00:06:53 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20rencontre=20R=C3=AAve=20de=20Dragon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le minimum était devenu 14 --- module/tmr-rencontres.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/module/tmr-rencontres.js b/module/tmr-rencontres.js index 4babca0f..8d23d847 100644 --- a/module/tmr-rencontres.js +++ b/module/tmr-rencontres.js @@ -268,7 +268,7 @@ const rencontresStandard = [ { code: "reflet", name: "Reflet d'ancien Rêve", type: "reflet", genre: "m", force: "2d6", isPersistant: true }, { code: "tbblanc", name: "Tourbillon blanc", type: "tbblanc", genre: "m", force: "2d6", isPersistant: true }, { code: "tbnoir", name: "Tourbillon noir", type: "tbnoir", genre: "m", force: "2d8", isPersistant: true }, - { code: "rdd", name: "Rêve de Dragon", type: "rdd", genre: "m", force: "1ddr + 7", refoulement: 2, quitterTMR: true } + { code: "rdd", name: "Rêve de Dragon", type: "rdd", genre: "m", force: "1dr + 7", refoulement: 2, quitterTMR: true } ]; const rencontresPresentCite = [ @@ -380,13 +380,7 @@ export class TMRRencontres { /* -------------------------------------------- */ static async evaluerForceRencontre(rencontre) { - if (TMRRencontres.isReveDeDragon(rencontre)) { - const ddr = new Roll("1dr + 7").evaluate(); - rencontre.force = 7 + ddr.total; - } - else { - rencontre.force = new Roll(rencontre.force).evaluate().total; - } + rencontre.force = new Roll(rencontre.force).evaluate().total; return rencontre.force; }