mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Initial
This commit is contained in:
parent
a768b1dfdb
commit
eac38ae205
15 changed files with 67 additions and 73 deletions
|
|
@ -40,7 +40,9 @@ export default class RegisterHandlebarsHelpers {
|
|||
|
||||
static damageSymbols(damageParts) {
|
||||
const symbols = new Set();
|
||||
damageParts.forEach(part => symbols.add(...CONFIG.DH.GENERAL.damageTypes[part.type].icon));
|
||||
damageParts.forEach(part =>
|
||||
part.type.values().forEach(type => symbols.add(CONFIG.DH.GENERAL.damageTypes[type].icon))
|
||||
);
|
||||
return new Handlebars.SafeString(Array.from(symbols).map(symbol => `<i class="fa-solid ${symbol}"></i>`));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue