[PR] Loadout Max detection when pulled from compendium (#1589)

* Initial test implementation for solution

* Expanded the existing _preCreate logic

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
This commit is contained in:
Nikhil Nagarajan 2026-01-28 02:51:00 -05:00 committed by GitHub
parent 076b7f01fa
commit a18393a9d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,8 +94,10 @@ export default class DHDomainCard extends BaseDataItem {
return false;
}
if (!this.actor.system.loadoutSlot.available) {
if (!this.actor.system.loadoutSlot.available && !this.loadoutIgnore) {
data.system.inVault = true;
await this.updateSource({ inVault: true });
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.loadoutMaxReached'));
}
}
}