diff --git a/module/rdd-commands.js b/module/rdd-commands.js index cf4c2322..fe4c1cda 100644 --- a/module/rdd-commands.js +++ b/module/rdd-commands.js @@ -13,7 +13,7 @@ import { RdDUtility } from "./rdd-utility.js"; import { TMRRencontres } from "./tmr-rencontres.js"; import { TMRUtility } from "./tmr-utility.js"; -const rddRollNumeric = /$(\d+)\s*([\+\-]?\d+)?\s*(s)?/; +const rddRollNumeric = /^(\d+)\s*([\+\-]?\d+)?\s*(s)?/; /* -------------------------------------------- */ export class RdDCommands { @@ -283,7 +283,7 @@ export class RdDCommands { finalLevel: diff, showDice: true, diviseurSignificative: significative ? 2 : 1, - show: { title: "Table de résolution" } + show: { title: "Table de résolution"} }; await RdDResolutionTable.rollData(rollData); RdDCommands._chatAnswer(msg, await RdDResolutionTable.buildRollDataHtml(rollData)); diff --git a/module/rdd-roll-resolution-table.js b/module/rdd-roll-resolution-table.js index 8521e1b1..271e6a05 100644 --- a/module/rdd-roll-resolution-table.js +++ b/module/rdd-roll-resolution-table.js @@ -29,6 +29,7 @@ export class RdDRollResolutionTable extends Dialog { finalLevel: 0, diffConditions: 0, diffLibre: 0, + use: { conditions:true, libre:true } } mergeObject(rollData, defRollData, { overwrite: false }); for (let i = 1; i < 21; i++) {