Reorder params for ease to read

(options json param at the end)
This commit is contained in:
Vincent Vandemeulebrouck
2021-01-09 19:36:19 +01:00
parent e7b9070cf1
commit b611cc9092
5 changed files with 24 additions and 25 deletions

View File

@ -192,15 +192,14 @@ export class RdDCommands {
};
await RdDResolutionTable.rollData(rollData);
msg.content = await RdDResolutionTable.buildRollDataHtml(rollData);
ChatUtility.chatWithRollMode(msg, game.user.name);
ChatUtility.createChatWithRollMode(game.user.name, msg);
}
async rollDeDraconique(msg) {
let rollMode = game.settings.get("core", "rollMode");
let ddr = new DeDraconique().evaluate();
await RdDDice.show(ddr, rollMode);
msg.content = `Lancer d'un Dé draconique: ${ddr.total}`;
ChatUtility.createChatMessage(msg, rollMode, game.user.name);
ChatUtility.createChatWithRollMode(game.user.name, msg);
}
}