Fixed so that formula construction specific to DAMAGE is now only applied to damage.main rather than by applyTo=hitPoints

This commit is contained in:
WBHarry 2026-07-18 17:14:55 +02:00
parent 88754c5a80
commit 3562ba649f
8 changed files with 56 additions and 62 deletions

View file

@ -48,9 +48,8 @@ export default class RegisterHandlebarsHelpers {
return formula;
}
static damageSymbols(damageParts) {
const allTypes = [...new Set([...damageParts].flatMap(x => Array.from(x.type)))];
const symbols = allTypes.map(p => CONFIG.DH.GENERAL.damageTypes[p].icon);
static damageSymbols(damageData) {
const symbols = damageData.type.map(p => CONFIG.DH.GENERAL.damageTypes[p].icon);
return new Handlebars.SafeString(Array.from(symbols).map(symbol => `<i class="fa-solid ${symbol}"></i>`));
}