mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
.
This commit is contained in:
parent
ccef7fff2c
commit
3e7b5cf9d0
1 changed files with 11 additions and 5 deletions
|
|
@ -8,7 +8,11 @@ export const typeConfig = {
|
||||||
{
|
{
|
||||||
key: 'system.type',
|
key: 'system.type',
|
||||||
label: 'DAGGERHEART.GENERAL.type',
|
label: 'DAGGERHEART.GENERAL.type',
|
||||||
format: type => (type ? `DAGGERHEART.CONFIG.AdversaryType.${type}.label` : '-')
|
format: type => {
|
||||||
|
if (!type) return '-';
|
||||||
|
|
||||||
|
return CONFIG.DH.ACTOR.allAdversaryTypes()[type].label;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
filters: [
|
filters: [
|
||||||
|
|
@ -320,11 +324,13 @@ export const typeConfig = {
|
||||||
{
|
{
|
||||||
key: 'system.domains',
|
key: 'system.domains',
|
||||||
label: 'DAGGERHEART.GENERAL.Domain.plural',
|
label: 'DAGGERHEART.GENERAL.Domain.plural',
|
||||||
format: domains =>
|
format: domains => {
|
||||||
domains
|
const config = CONFIG.DH.DOMAIN.allDomains();
|
||||||
.map(x => (!x ? null : game.i18n.localize(`DAGGERHEART.GENERAL.Domain.${x}.label`)))
|
return domains
|
||||||
|
.map(x => (x ? game.i18n.localize(config[x].label) : null))
|
||||||
.filter(x => x)
|
.filter(x => x)
|
||||||
.join(', ')
|
.join(', ');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
filters: [
|
filters: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue