mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Re-add subclass config
This commit is contained in:
parent
fc3db9b5b1
commit
41c5ff819c
1 changed files with 144 additions and 140 deletions
|
|
@ -363,18 +363,28 @@ export const typeConfig = {
|
|||
subclasses: {
|
||||
columns: [
|
||||
{
|
||||
key: 'id',
|
||||
label: 'TYPES.Item.class',
|
||||
format: id => {
|
||||
return '';
|
||||
}
|
||||
key: 'system.linkedClass',
|
||||
label: 'Class',
|
||||
format: linkedClass => linkedClass.name
|
||||
},
|
||||
{
|
||||
key: 'system.spellcastingTrait',
|
||||
label: 'DAGGERHEART.ITEMS.Subclass.spellcastingTrait'
|
||||
}
|
||||
],
|
||||
filters: []
|
||||
filters: [
|
||||
{
|
||||
key: 'system.linkedClass.uuid',
|
||||
label: 'Class',
|
||||
choices: (items) => {
|
||||
const list = items.map(item => ({ value: item.system.linkedClass.uuid, label: item.system.linkedClass.name }));
|
||||
return list.reduce((a,c) => {
|
||||
if(!(a.find(i => i.value === c.value))) a.push(c);
|
||||
return a;
|
||||
}, []);
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
beastforms: {
|
||||
columns: [
|
||||
|
|
@ -403,10 +413,6 @@ export const typeConfig = {
|
|||
};
|
||||
|
||||
export const compendiumConfig = {
|
||||
// daggerheart: {
|
||||
// id: 'daggerheart',
|
||||
// label: 'DAGGERHEART',
|
||||
// folders: {
|
||||
adversaries: {
|
||||
id: 'adversaries',
|
||||
keys: ['adversaries'],
|
||||
|
|
@ -540,6 +546,4 @@ export const compendiumConfig = {
|
|||
label: 'DAGGERHEART.UI.ItemBrowser.folders.features',
|
||||
type: ['feature']
|
||||
}
|
||||
// }
|
||||
// }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue