Cleanup & Reformatage

This commit is contained in:
Vincent Vandemeulebrouck
2022-11-05 18:06:30 +01:00
parent d183ce505a
commit e198cb60b1
21 changed files with 1111 additions and 1175 deletions

View File

@ -29,13 +29,14 @@ export class RddCompendiumOrganiser {
static getEntityTypeLabel(entity) {
const documentName = entity?.documentName
const type = entity?.type
const type = entity?.type
if (documentName === 'Actor' || documentName === 'Item') {
const label = CONFIG[documentName]?.typeLabels?.[type] ?? type;
return game.i18n.has(label) ? game.i18n.localize(label) : t;
if (game.i18n.has(label)) {
return game.i18n.localize(label);
}
}
return type;
}
}