Active Effects (#123)

* Added Dh classes to ActiveEffect/ActiveEffectConfig with some initial logic

* TabFormFooter styling update

* Lowered tab-form-footer padding
This commit is contained in:
WBHarry 2025-06-12 20:53:47 +02:00 committed by GitHub
parent 7799f4f1eb
commit bc3525c970
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 230 additions and 0 deletions

View file

@ -1,3 +1,4 @@
export { default as DhpActor } from './actor.mjs';
export { default as DhpItem } from './item.mjs';
export { default as DhpCombat } from './combat.mjs';
export { default as DhActiveEffect } from './activeEffect.mjs';

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);
}
}