Added Attribution to Ancestry/Community

This commit is contained in:
WBHarry 2025-08-17 03:43:02 +02:00
parent 8761880b12
commit f6cdc9c157
78 changed files with 744 additions and 362 deletions

View file

@ -117,6 +117,13 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
return [];
}
get attributionLabel() {
if (!this.attribution) return;
const { source, page } = this.attribution;
return [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
}
/**
* Obtain a data object used to evaluate any dice rolls associated with this Item Type
* @param {object} [options] - Options which modify the getRollData method.