mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-23 07:53:39 +02:00
Compare commits
3 commits
2b8e4cb2fa
...
7fa03c58e0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fa03c58e0 | ||
|
|
1df248925e | ||
|
|
2a55e317fc |
4 changed files with 12 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -305,6 +305,7 @@
|
|||
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.355",
|
||||
"verified": "14.358",
|
||||
"minimum": "14.359",
|
||||
"verified": "14.359",
|
||||
"maximum": "14"
|
||||
},
|
||||
"authors": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue