mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-25 00:43:38 +02:00
Compare commits
No commits in common. "7fa03c58e08f085c773dc22c6c936c2ad09f87e7" and "2b8e4cb2faed49a41ef50c6db6198a8c65f96149" have entirely different histories.
7fa03c58e0
...
2b8e4cb2fa
4 changed files with 8 additions and 12 deletions
|
|
@ -54,14 +54,11 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
|||
}
|
||||
|
||||
get roll() {
|
||||
switch (this.parent.type) {
|
||||
case 'adversaryRoll':
|
||||
return this.parent.rolls.find(x => x instanceof game.system.api.dice.D20Roll);
|
||||
case 'dualityRoll':
|
||||
if (this.parent.type === 'dualityRoll')
|
||||
return this.parent.rolls.find(x => x instanceof game.system.api.dice.DualityRoll);
|
||||
case 'fateRoll':
|
||||
|
||||
if (this.parent.type === 'fateRoll')
|
||||
return this.parent.rolls.find(x => x instanceof game.system.api.dice.FateRoll);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ export default class DamageField extends fields.SchemaField {
|
|||
...config,
|
||||
roll: formulas,
|
||||
data: this.getRollData(),
|
||||
isCritical: Boolean(message?.system.roll?.isCritical)
|
||||
isCritical: message?.system.roll.isCritical
|
||||
};
|
||||
delete damageConfig.evaluate;
|
||||
|
||||
|
|
|
|||
|
|
@ -305,7 +305,6 @@
|
|||
position: relative;
|
||||
width: 95px;
|
||||
height: 30px;
|
||||
white-space: nowrap;
|
||||
|
||||
.status-label {
|
||||
padding: 2px 2px;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
"description": "An unofficial implementation of the Daggerheart system",
|
||||
"version": "2.0.0",
|
||||
"compatibility": {
|
||||
"minimum": "14.359",
|
||||
"verified": "14.359",
|
||||
"minimum": "14.355",
|
||||
"verified": "14.358",
|
||||
"maximum": "14"
|
||||
},
|
||||
"authors": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue