mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Compare commits
2 commits
fdfd8c5a8d
...
4c2d31b2f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c2d31b2f4 | ||
|
|
67d142df3d |
2 changed files with 22 additions and 21 deletions
|
|
@ -345,7 +345,7 @@ export async function runMigrations() {
|
||||||
|
|
||||||
if (foundry.utils.isNewerVersion('2.0.4', lastMigrationVersion)) {
|
if (foundry.utils.isNewerVersion('2.0.4', lastMigrationVersion)) {
|
||||||
const downtimeMoves = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew);
|
const downtimeMoves = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew);
|
||||||
if (restMoves.longRest.moves.repairArmor) {
|
if (downtimeMoves.restMoves.longRest.moves.repairArmor) {
|
||||||
await downtimeMoves.updateSource({
|
await downtimeMoves.updateSource({
|
||||||
'restMoves.longRest.moves.repairArmor': defaultRestOptions.longRest().repairArmor
|
'restMoves.longRest.moves.repairArmor': defaultRestOptions.longRest().repairArmor
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -33,31 +33,32 @@
|
||||||
<div class="roll-formula">{{total}}</div></span></label>
|
<div class="roll-formula">{{total}}</div></span></label>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="roll-dice">
|
<div class="roll-dice">
|
||||||
{{#each dice}}
|
{{#if dice.length}}
|
||||||
{{#each results}}
|
{{#each dice}}
|
||||||
{{#unless discarded}}
|
{{#each results}}
|
||||||
<div class="roll-die{{#unless @../first}} has-plus{{/unless}}">
|
{{#unless discarded}}
|
||||||
<div
|
<div class="roll-die{{#unless @../first}} has-plus{{/unless}}">
|
||||||
class="dice reroll-button {{../dice}}"
|
<div
|
||||||
data-die-index="0" data-type="damage" data-damage-type="{{@../../../key}}" data-part="{{@../../key}}" data-dice="{{@../key}}" data-result="{{@key}}"
|
class="dice reroll-button {{../dice}}"
|
||||||
>
|
data-die-index="0" data-type="damage" data-damage-type="{{@../../../key}}" data-part="{{@../../key}}" data-dice="{{@../key}}" data-result="{{@key}}"
|
||||||
{{#if hasRerolls}}<i class="fa-solid fa-dice dice-rerolled" data-tooltip="{{localize "DAGGERHEART.GENERAL.rerolled"}}"></i>{{/if}}
|
>
|
||||||
{{result}}
|
{{#if hasRerolls}}<i class="fa-solid fa-dice dice-rerolled" data-tooltip="{{localize "DAGGERHEART.GENERAL.rerolled"}}"></i>{{/if}}
|
||||||
|
{{result}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{{/unless}}
|
||||||
{{/unless}}
|
{{/each}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/each}}
|
{{#if modifierTotal}}
|
||||||
{{#if modifierTotal}}
|
<div class="roll-die{{#if (gt modifierTotal 0)}} has-plus{{/if}}">
|
||||||
<div class="roll-die{{#if (gt modifierTotal 0)}} has-plus{{/if}}">
|
<div class="font-20">{{modifierTotal}}</div>
|
||||||
<div class="font-20">{{modifierTotal}}</div>
|
</div>
|
||||||
</div>
|
{{/if}}
|
||||||
{{/if}}
|
{{else}}
|
||||||
{{#unless dice.length}}
|
|
||||||
<div class="roll-die">
|
<div class="roll-die">
|
||||||
<div class="font-20">{{total}}</div>
|
<div class="font-20">{{total}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue