diff --git a/.prettierignore b/.prettierignore index a71f9f91..e792a467 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,5 @@ package-lock.json package.json .github *.hbs -styles/daggerheart.css \ No newline at end of file +styles/daggerheart.css +src/packs \ No newline at end of file diff --git a/module/data/adversaryRoll.mjs b/module/data/adversaryRoll.mjs index e7086c55..bdb09c68 100644 --- a/module/data/adversaryRoll.mjs +++ b/module/data/adversaryRoll.mjs @@ -51,18 +51,6 @@ export default class DhpAdversaryRoll extends foundry.abstract.TypeDataModel { })); } - // const highestIndex = 0; - // for (var index in diceKeys) { - // const resultIndex = Number.parseInt(index); - // if (highestIndex === resultIndex) continue; - - // const current = this.dice.rolls[resultIndex]; - // const highest = this.dice.rolls[highestIndex]; - - // if (current.value > highest.value) this.dice.rolls[highestIndex].discarded = true; - // else this.dice.rolls[resultIndex].discarded = true; - // } - this.targets.forEach(target => { target.hit = target.difficulty ? this.total >= target.difficulty : this.total >= target.evasion; }); diff --git a/templates/chat/duality-roll.hbs b/templates/chat/duality-roll.hbs index eed124ff..8645e7a3 100644 --- a/templates/chat/duality-roll.hbs +++ b/templates/chat/duality-roll.hbs @@ -2,7 +2,6 @@