finish party members tab

This commit is contained in:
moliloo 2025-08-23 19:45:23 -03:00
parent 9a1ed95c9f
commit 5b7272c2c7
10 changed files with 144 additions and 32 deletions

View file

@ -170,4 +170,13 @@ export default class DhpAdversary extends BaseDataActor {
}
}
}
_getTags() {
const tags = [
game.i18n.localize(`DAGGERHEART.GENERAL.Tiers.${this.tier}`),
`${game.i18n.localize(`DAGGERHEART.CONFIG.AdversaryType.${this.type}.label`)}`,
`${game.i18n.localize('DAGGERHEART.GENERAL.difficulty')}: ${this.difficulty}`
];
return tags;
}
}

View file

@ -675,4 +675,9 @@ export default class DhCharacter extends BaseDataActor {
this.companion.updateLevel(1);
}
}
_getTags() {
const tags = [this.class.value.name, this.class.subclass.name, this.community.name, this.ancestry.name];
return tags;
}
}

View file

@ -7,12 +7,7 @@ export default class DhParty extends BaseDataActor {
const fields = foundry.data.fields;
return {
...super.defineSchema(),
partyMembers: new fields.TypedObjectField(
new fields.SchemaField({
label: new fields.StringField(),
adversaries: new ForeignDocumentUUIDArrayField({ type: 'Actor' })
})
),
partyMembers: new ForeignDocumentUUIDArrayField({ type: 'Actor' }),
notes: new fields.HTMLField()
};
}