Fix: commandes /rdd

La sélection de difficultés est de nouveau disponible dans la table de
résolution

Les jets 'numériques' /rdd 12 0 sont de nouveau pris en compte
This commit is contained in:
Vincent Vandemeulebrouck 2021-05-29 20:20:30 +02:00
parent 09fe695777
commit 8807ba01dc
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import { RdDUtility } from "./rdd-utility.js";
import { TMRRencontres } from "./tmr-rencontres.js"; import { TMRRencontres } from "./tmr-rencontres.js";
import { TMRUtility } from "./tmr-utility.js"; import { TMRUtility } from "./tmr-utility.js";
const rddRollNumeric = /$(\d+)\s*([\+\-]?\d+)?\s*(s)?/; const rddRollNumeric = /^(\d+)\s*([\+\-]?\d+)?\s*(s)?/;
/* -------------------------------------------- */ /* -------------------------------------------- */
export class RdDCommands { export class RdDCommands {
@ -283,7 +283,7 @@ export class RdDCommands {
finalLevel: diff, finalLevel: diff,
showDice: true, showDice: true,
diviseurSignificative: significative ? 2 : 1, diviseurSignificative: significative ? 2 : 1,
show: { title: "Table de résolution" } show: { title: "Table de résolution"}
}; };
await RdDResolutionTable.rollData(rollData); await RdDResolutionTable.rollData(rollData);
RdDCommands._chatAnswer(msg, await RdDResolutionTable.buildRollDataHtml(rollData)); RdDCommands._chatAnswer(msg, await RdDResolutionTable.buildRollDataHtml(rollData));

View File

@ -29,6 +29,7 @@ export class RdDRollResolutionTable extends Dialog {
finalLevel: 0, finalLevel: 0,
diffConditions: 0, diffConditions: 0,
diffLibre: 0, diffLibre: 0,
use: { conditions:true, libre:true }
} }
mergeObject(rollData, defRollData, { overwrite: false }); mergeObject(rollData, defRollData, { overwrite: false });
for (let i = 1; i < 21; i++) { for (let i = 1; i < 21; i++) {