mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
Merge branch 'v14-Dev' into v14/conditional-effects
This commit is contained in:
commit
1ba08e2f51
81 changed files with 503 additions and 140 deletions
|
|
@ -541,6 +541,21 @@ export function getIconVisibleActiveEffects(effects) {
|
|||
return !effect.active && (alwaysShown || conditionalShown);
|
||||
});
|
||||
}
|
||||
export async function getFeaturesHTMLData(features) {
|
||||
const result = [];
|
||||
for (const feature of features) {
|
||||
if (feature) {
|
||||
const base = feature.item ?? feature;
|
||||
const item = base.system ? base : await foundry.utils.fromUuid(base.uuid);
|
||||
const itemDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
||||
item.system.description
|
||||
);
|
||||
result.push({ label: item.name, description: itemDescription });
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a simple flavor-less formula with only +/- operators, returns a list of damage partial terms.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue