mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
PR-Fixes
This commit is contained in:
parent
0c50233da3
commit
b696ba2ebc
3 changed files with 2 additions and 34 deletions
|
|
@ -4,3 +4,4 @@ package.json
|
||||||
.github
|
.github
|
||||||
*.hbs
|
*.hbs
|
||||||
styles/daggerheart.css
|
styles/daggerheart.css
|
||||||
|
src/packs
|
||||||
|
|
@ -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 => {
|
this.targets.forEach(target => {
|
||||||
target.hit = target.difficulty ? this.total >= target.difficulty : this.total >= target.evasion;
|
target.hit = target.difficulty ? this.total >= target.difficulty : this.total >= target.evasion;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
<div class="dice-flavor">{{this.title}}</div>
|
<div class="dice-flavor">{{this.title}}</div>
|
||||||
<div class="dice-result">
|
<div class="dice-result">
|
||||||
<div class="dice-formula">{{roll}}</div>
|
<div class="dice-formula">{{roll}}</div>
|
||||||
|
|
||||||
<div class="dice-tooltip">
|
<div class="dice-tooltip">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<section class="tooltip-part">
|
<section class="tooltip-part">
|
||||||
|
|
@ -55,26 +54,6 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- <div class="dice-tooltip {{#if advantage.value}}expanded{{/if}}">
|
|
||||||
<ol class="dice-rolls duality">
|
|
||||||
<div class="dice-hope-container">
|
|
||||||
<li id="hope" class="roll die {{hope.dice}} hope" title="{{localize "DAGGERHEART.General.Hope"}}">{{hope.value}}</li>
|
|
||||||
<li class="roll die {{fear.dice}} fear" title="{{localize "DAGGERHEART.General.Fear"}}">{{fear.value}}</li>
|
|
||||||
{{#if advantage.value}}
|
|
||||||
<li class="roll die {{advantage.dice}} advantage" title="{{localize "DAGGERHEART.General.Advantage.Full"}}">{{ advantage.value}}</li>
|
|
||||||
{{/if}}
|
|
||||||
{{#if disadvantage.value}}
|
|
||||||
<li class="roll die {{disadvantage.dice}} disadvantage" title="{{localize "DAGGERHEART.General.Disadvantage.Full"}}">{{disadvantage.value}}</li>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="modifiers-container">
|
|
||||||
{{#each modifiers}}
|
|
||||||
<li class="modifier-value" data-value="{{this.value}}" title="{{this.title}}">{{this.label}}</li>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</ol>
|
|
||||||
</div> --}}
|
|
||||||
<div class="dice-total">
|
<div class="dice-total">
|
||||||
<div class="dice-total-label">{{totalLabel}}</div>
|
<div class="dice-total-label">{{totalLabel}}</div>
|
||||||
<div class="dice-total-value">
|
<div class="dice-total-value">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue