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 (#1862)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
This commit is contained in:
parent
2ffe678503
commit
0128106de6
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
context.resources.stress.max < maxResource ? maxResource - context.resources.stress.max : 0;
|
context.resources.stress.max < maxResource ? maxResource - context.resources.stress.max : 0;
|
||||||
|
|
||||||
context.equippedItems = sortBy(
|
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)
|
i => (i.type === 'weapon' ? (i.system.secondary ? 1 : 0) : 2)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue