mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
.
This commit is contained in:
parent
d113ddce74
commit
75510f2797
2 changed files with 8 additions and 5 deletions
|
|
@ -2570,6 +2570,7 @@
|
||||||
"evasionMin": "Evasion (Min)",
|
"evasionMin": "Evasion (Min)",
|
||||||
"evasionMax": "Evasion (Max)",
|
"evasionMax": "Evasion (Max)",
|
||||||
"subtype": "Subtype",
|
"subtype": "Subtype",
|
||||||
|
"missing": "<Missing>",
|
||||||
"folders": {
|
"folders": {
|
||||||
"characters": "Characters",
|
"characters": "Characters",
|
||||||
"adversaries": "Adversaries",
|
"adversaries": "Adversaries",
|
||||||
|
|
|
||||||
|
|
@ -363,7 +363,7 @@ export const typeConfig = {
|
||||||
{
|
{
|
||||||
key: 'system.linkedClass',
|
key: 'system.linkedClass',
|
||||||
label: 'Class',
|
label: 'Class',
|
||||||
format: linkedClass => linkedClass.name
|
format: linkedClass => linkedClass?.name ?? game.i18n.localize('DAGGERHEART.UI.ItemBrowser.missing')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'system.spellcastingTrait',
|
key: 'system.spellcastingTrait',
|
||||||
|
|
@ -375,10 +375,12 @@ export const typeConfig = {
|
||||||
key: 'system.linkedClass.uuid',
|
key: 'system.linkedClass.uuid',
|
||||||
label: 'Class',
|
label: 'Class',
|
||||||
choices: items => {
|
choices: items => {
|
||||||
const list = items.map(item => ({
|
const list = items
|
||||||
value: item.system.linkedClass.uuid,
|
.filter(item => item.system.linkedClass)
|
||||||
label: item.system.linkedClass.name
|
.map(item => ({
|
||||||
}));
|
value: item.system.linkedClass.uuid,
|
||||||
|
label: item.system.linkedClass.name
|
||||||
|
}));
|
||||||
return list.reduce((a, c) => {
|
return list.reduce((a, c) => {
|
||||||
if (!a.find(i => i.value === c.value)) a.push(c);
|
if (!a.find(i => i.value === c.value)) a.push(c);
|
||||||
return a;
|
return a;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue