mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Temp * Finished Evolved * Fixed hybrid * Changed generalConfig.tiers to be number based * Weaponhandling while in beastform * Added unarmed strike in sidebar * Added DamageEnricher * Added effect enricher * Corrected downtime buttons and actions * Added BeastformTooltip * Split the BeastformDialog into parts with tabs * Added temp beastform features * rollData change * Improvement * character.getRollData cleanup
19 lines
640 B
JavaScript
19 lines
640 B
JavaScript
export default async function DhEffectEnricher(match, _options) {
|
|
const effect = await foundry.utils.fromUuid(match[1]);
|
|
if (!effect) return match[0];
|
|
|
|
const dualityElement = document.createElement('span');
|
|
dualityElement.innerHTML = `
|
|
<a class="flexrow enriched-effect"
|
|
data-link
|
|
draggable="true"
|
|
data-uuid="${match[1]}"
|
|
data-tooltip="${game.i18n.localize('DAGGERHEART.UI.Tooltip.dragApplyEffect')}"
|
|
>
|
|
<img src="icons/svg/aura.svg" style="width: 24px;" />
|
|
<span>${effect.name}</span>
|
|
</a>
|
|
`;
|
|
|
|
return dualityElement;
|
|
}
|