Added effects for Weapon and Armor traits

This commit is contained in:
WBHarry 2025-06-14 17:29:54 +02:00
parent b7ea925276
commit b8482da848
13 changed files with 573 additions and 51 deletions

View file

@ -1,4 +1,12 @@
export default class DhActiveEffect extends ActiveEffect {
get isSuppressed() {
if (['weapon', 'armor'].includes(this.parent.type)) {
return !this.parent.system.equipped;
}
return super.isSuppressed;
}
async _preCreate(data, options, user) {
const update = {};
if (!data.img) {