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: {
|
subclasses: {
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
key: 'id',
|
key: 'system.linkedClass',
|
||||||
label: 'TYPES.Item.class',
|
label: 'Class',
|
||||||
format: id => {
|
format: linkedClass => linkedClass.name
|
||||||
return '';
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'system.spellcastingTrait',
|
key: 'system.spellcastingTrait',
|
||||||
label: 'DAGGERHEART.ITEMS.Subclass.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: {
|
beastforms: {
|
||||||
columns: [
|
columns: [
|
||||||
|
|
@ -403,10 +413,6 @@ export const typeConfig = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const compendiumConfig = {
|
export const compendiumConfig = {
|
||||||
// daggerheart: {
|
|
||||||
// id: 'daggerheart',
|
|
||||||
// label: 'DAGGERHEART',
|
|
||||||
// folders: {
|
|
||||||
adversaries: {
|
adversaries: {
|
||||||
id: 'adversaries',
|
id: 'adversaries',
|
||||||
keys: ['adversaries'],
|
keys: ['adversaries'],
|
||||||
|
|
@ -540,6 +546,4 @@ export const compendiumConfig = {
|
||||||
label: 'DAGGERHEART.UI.ItemBrowser.folders.features',
|
label: 'DAGGERHEART.UI.ItemBrowser.folders.features',
|
||||||
type: ['feature']
|
type: ['feature']
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue