mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
* Added Dh classes to ActiveEffect/ActiveEffectConfig with some initial logic * TabFormFooter styling update * Lowered tab-form-footer padding
14 lines
396 B
JavaScript
14 lines
396 B
JavaScript
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);
|
|
}
|
|
}
|