diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index 490f53eb..aae3f2c7 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -551,13 +551,7 @@ export default class DhpActor extends Actor { } convertDamageToThreshold(damage) { - return damage >= this.system.damageThresholds.severe - ? 3 - : damage >= this.system.damageThresholds.major - ? 2 - : damage >= this.system.damageThresholds.minor - ? 1 - : 0; + return damage >= this.system.damageThresholds.severe ? 3 : damage >= this.system.damageThresholds.major ? 2 : 1; } convertStressDamageToHP(resources) { diff --git a/styles/less/dialog/damage-reduction/damage-reduction-container.less b/styles/less/dialog/damage-reduction/damage-reduction-container.less index 25ca5ff9..7dab4f5d 100644 --- a/styles/less/dialog/damage-reduction/damage-reduction-container.less +++ b/styles/less/dialog/damage-reduction/damage-reduction-container.less @@ -46,10 +46,6 @@ display: flex; gap: 2px; - &:not(:last-child) { - margin-right: 8px; - } - .mark-container { cursor: pointer; border: 1px solid light-dark(@dark-blue, @golden); @@ -62,6 +58,10 @@ justify-content: center; opacity: 0.4; + &:not(:last-child) { + margin-right: 8px; + } + &.selected { opacity: 1; } diff --git a/templates/sheets/actors/character/header.hbs b/templates/sheets/actors/character/header.hbs index 9e930fd6..5ab8fdd0 100644 --- a/templates/sheets/actors/character/header.hbs +++ b/templates/sheets/actors/character/header.hbs @@ -118,10 +118,10 @@ {{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
- -