mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Remove spaces in damage formulas
This commit is contained in:
parent
a4031952d1
commit
1450ba5e03
1 changed files with 2 additions and 2 deletions
|
|
@ -247,7 +247,7 @@ export default class DhpAdversary extends BaseDataActor {
|
|||
adjusted.bonus
|
||||
]
|
||||
.filter(p => !!p)
|
||||
.join(' + ');
|
||||
.join('+');
|
||||
return match.replace(formula, newFormula);
|
||||
} catch {
|
||||
return match;
|
||||
|
|
@ -381,7 +381,7 @@ export default class DhpAdversary extends BaseDataActor {
|
|||
const value = this.#calculateAdjustedDamage(previousFormula, damageMeta);
|
||||
const formula = [value.diceQuantity ? `${value.diceQuantity}d${value.faces}` : null, value.bonus]
|
||||
.filter(p => !!p)
|
||||
.join(' + ');
|
||||
.join('+');
|
||||
if (value.diceQuantity) {
|
||||
data.custom.enabled = false;
|
||||
data.bonus = value.bonus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue