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() { get roll() {
if (this.parent.type === 'dualityRoll') switch (this.parent.type) {
return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll); case 'adversaryRoll':
return this.parent.rolls.find(x => x instanceof game.system.api.dice.D20Roll);
if (this.parent.type === 'fateRoll') case 'dualityRoll':
return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll); 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; return null;
} }

View file

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

View file

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

View file

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