mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Fixes
This commit is contained in:
parent
973e54df96
commit
26ec779fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -261,8 +261,8 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
condition: target => getDocFromElement(target).system.inVault,
|
condition: target => getDocFromElement(target).system.inVault,
|
||||||
callback: target => {
|
callback: target => {
|
||||||
const doc = getDocFromElement(target),
|
const doc = getDocFromElement(target),
|
||||||
actorLoadout = doc.actor?.system.loadoutSlot ?? null;
|
actorLoadout = doc.actor.system.loadoutSlot;
|
||||||
if(actorLoadout?.available) return doc.update({ 'system.inVault': false });
|
if(actorLoadout.available) return doc.update({ 'system.inVault': false });
|
||||||
ui.notifications.warn(game.i18n.format('DAGGERHEART.UI.Notifications.loadoutMaxReached', { max: actorLoadout.max }))
|
ui.notifications.warn(game.i18n.format('DAGGERHEART.UI.Notifications.loadoutMaxReached', { max: actorLoadout.max }))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue