mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
[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:
parent
076b7f01fa
commit
a18393a9d0
1 changed files with 3 additions and 1 deletions
|
|
@ -94,8 +94,10 @@ export default class DHDomainCard extends BaseDataItem {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.actor.system.loadoutSlot.available) {
|
if (!this.actor.system.loadoutSlot.available && !this.loadoutIgnore) {
|
||||||
data.system.inVault = true;
|
data.system.inVault = true;
|
||||||
|
await this.updateSource({ inVault: true });
|
||||||
|
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.Notifications.loadoutMaxReached'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue