diff --git a/module/data/chat-message/actorRoll.mjs b/module/data/chat-message/actorRoll.mjs index 89f34949..b0e122d1 100644 --- a/module/data/chat-message/actorRoll.mjs +++ b/module/data/chat-message/actorRoll.mjs @@ -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': - 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); - } + 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); return null; } diff --git a/module/data/fields/action/damageField.mjs b/module/data/fields/action/damageField.mjs index d41d2d4a..94f70e68 100644 --- a/module/data/fields/action/damageField.mjs +++ b/module/data/fields/action/damageField.mjs @@ -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; diff --git a/styles/less/sheets/actors/character/sidebar.less b/styles/less/sheets/actors/character/sidebar.less index e7027163..8bbede76 100644 --- a/styles/less/sheets/actors/character/sidebar.less +++ b/styles/less/sheets/actors/character/sidebar.less @@ -305,7 +305,6 @@ position: relative; width: 95px; height: 30px; - white-space: nowrap; .status-label { padding: 2px 2px; diff --git a/system.json b/system.json index b1fe74d8..cc322576 100644 --- a/system.json +++ b/system.json @@ -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": [