Compare commits

...

2 commits

Author SHA1 Message Date
WBHarry
4c2d31b2f4
Fixed so that expanded damage info without any dice will show the correct value (#1780) 2026-04-05 19:28:27 +02:00
WBHarry
67d142df3d Fixed migration 2026-04-05 17:27:02 +02:00
2 changed files with 22 additions and 21 deletions

View file

@ -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
}); });

View file

@ -33,6 +33,7 @@
<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">
{{#if dice.length}}
{{#each dice}} {{#each dice}}
{{#each results}} {{#each results}}
{{#unless discarded}} {{#unless discarded}}
@ -53,11 +54,11 @@
<div class="font-20">{{modifierTotal}}</div> <div class="font-20">{{modifierTotal}}</div>
</div> </div>
{{/if}} {{/if}}
{{#unless dice.length}} {{else}}
<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>