[PR][Feature] Adversary Compendium Name Lookup (#1458)

* Exchanged all name references for @Lookup. Removed duplicated descriptions on feature actions.

* Corrected action.description fallback
This commit is contained in:
WBHarry 2025-12-24 01:15:50 +01:00 committed by GitHub
parent 92b31b71a7
commit 2104549617
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
132 changed files with 672 additions and 669 deletions

View file

@ -98,7 +98,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
async _prepareContext(_options) {
const context = await super._prepareContext(_options, 'action');
context.source = this.action.toObject(false);
context.source = this.action._source;
context.openSection = this.openSection;
context.tabs = this._getTabs(this.constructor.TABS);
context.config = CONFIG.DH;

View file

@ -95,6 +95,9 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
prepareData() {
this.name = this.name || game.i18n.localize(CONFIG.DH.ACTIONS.actionTypes[this.type].name);
this.img = this.img ?? this.parent?.parent?.img;
/* Fallback to feature description */
this.description = this.description || this.parent?.description;
}
/**