enrich effects tab in actor sheet with more detail

This commit is contained in:
Johannes Loher 2021-09-12 18:35:07 +02:00
parent bd27aafe01
commit 8d32d0e3bb
6 changed files with 29 additions and 5 deletions

View file

@ -53,6 +53,8 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options, DS4ActorSheetD
...effect.toObject(),
icon: effect.data.icon ?? DS4ActiveEffect.FALLBACK_ICON,
sourceName: await effect.getCurrentSourceName(),
factor: effect.factor,
isEffectivelyEnabled: !effect.data.disabled && !effect.isSurpressed,
};
});
const enrichedEffects = await Promise.all(enrichedEffectPromises);