fix npc dice roll, and with category id instead of skill id

This commit is contained in:
Vlyan
2020-12-18 23:25:00 +01:00
parent b152018607
commit d3bcfba723
8 changed files with 47 additions and 21 deletions

View File

@@ -14,6 +14,7 @@ export class RollL5r5e extends Roll {
this.l5r5e = {
stance: "",
skillId: "",
skillCatId: "",
actor: null,
dicesTypes: {
std: false,
@@ -197,9 +198,6 @@ export class RollL5r5e extends Roll {
this.roll();
}
const skillName =
game.i18n.translations.l5r5e.skills?.[L5R5E.skills.get(this.l5r5e.skillId)]?.[this.l5r5e.skillId] || "";
// Define chat data
const chatData = {
formula: isPrivate ? "???" : this._formula,