mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36: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
|
adjusted.bonus
|
||||||
]
|
]
|
||||||
.filter(p => !!p)
|
.filter(p => !!p)
|
||||||
.join(' + ');
|
.join('+');
|
||||||
return match.replace(formula, newFormula);
|
return match.replace(formula, newFormula);
|
||||||
} catch {
|
} catch {
|
||||||
return match;
|
return match;
|
||||||
|
|
@ -381,7 +381,7 @@ export default class DhpAdversary extends BaseDataActor {
|
||||||
const value = this.#calculateAdjustedDamage(previousFormula, damageMeta);
|
const value = this.#calculateAdjustedDamage(previousFormula, damageMeta);
|
||||||
const formula = [value.diceQuantity ? `${value.diceQuantity}d${value.faces}` : null, value.bonus]
|
const formula = [value.diceQuantity ? `${value.diceQuantity}d${value.faces}` : null, value.bonus]
|
||||||
.filter(p => !!p)
|
.filter(p => !!p)
|
||||||
.join(' + ');
|
.join('+');
|
||||||
if (value.diceQuantity) {
|
if (value.diceQuantity) {
|
||||||
data.custom.enabled = false;
|
data.custom.enabled = false;
|
||||||
data.bonus = value.bonus;
|
data.bonus = value.bonus;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue