mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +02:00
Don't show unusable non-weapons in character sidebar
This commit is contained in:
parent
85ca7efc6d
commit
9bb0cb4613
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
context.resources.stress.max < maxResource ? maxResource - context.resources.stress.max : 0;
|
||||
|
||||
context.equippedItems = sortBy(
|
||||
this.document.items.filter(i => i.system.equipped),
|
||||
this.document.items.filter(i => i.system.equipped && (i.type === 'weapon' || i.usable)),
|
||||
i => (i.type === 'weapon' ? (i.system.secondary ? 1 : 0) : 2)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue