Compare commits

...

3 commits

Author SHA1 Message Date
WBHarry
7fa03c58e0 Fixed armor-slots styling in CharacterSheet 2026-04-01 23:53:13 +02:00
WBHarry
1df248925e Raised foundry version 2026-04-01 23:10:16 +02:00
Carlos Fernandez
2a55e317fc Fix adversary damage rolls 2026-04-01 16:56:44 -04:00
4 changed files with 12 additions and 8 deletions

View file

@ -54,11 +54,14 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
}
get roll() {
if (this.parent.type === 'dualityRoll')
return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll);
if (this.parent.type === 'fateRoll')
return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll);
switch (this.parent.type) {
case 'adversaryRoll':
return this.parent.rolls.find(x => x instanceof game.system.api.dice.D20Roll);
case 'dualityRoll':
return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll);
case 'fateRoll':
return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll);
}
return null;
}

View file

@ -56,7 +56,7 @@ export default class DamageField extends fields.SchemaField {
...config,
roll: formulas,
data: this.getRollData(),
isCritical: message?.system.roll.isCritical
isCritical: Boolean(message?.system.roll?.isCritical)
};
delete damageConfig.evaluate;

View file

@ -305,6 +305,7 @@
position: relative;
width: 95px;
height: 30px;
white-space: nowrap;
.status-label {
padding: 2px 2px;

View file

@ -4,8 +4,8 @@
"description": "An unofficial implementation of the Daggerheart system",
"version": "2.0.0",
"compatibility": {
"minimum": "14.355",
"verified": "14.358",
"minimum": "14.359",
"verified": "14.359",
"maximum": "14"
},
"authors": [