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