Added Dh classes to ActiveEffect/ActiveEffectConfig with some initial logic

This commit is contained in:
WBHarry 2025-06-10 18:50:09 +02:00
parent 7799f4f1eb
commit a806e1f9bb
16 changed files with 226 additions and 0 deletions

View file

@ -0,0 +1,14 @@
export default class DhActiveEffect extends ActiveEffect {
async _preCreate(data, options, user) {
const update = {};
if (!data.img) {
update.img = 'icons/magic/life/heart-cross-blue.webp';
}
if (Object.keys(update).length > 0) {
await this.updateSource(update);
}
await super._preCreate(data, options, user);
}
}