diff --git a/system/lang/en-en.json b/system/lang/en-en.json index 540ea50..75efd31 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -132,7 +132,13 @@ "ninjutsu": "Ninjutsu" }, "peculiarities": { - "title_new": "Nouvelle particularité" + "title_new": "New peculiarity", + "types": { + "distinction": "Distinction", + "passion": "Passion", + "adversity": "Adversity", + "anxiety": "Anxiety" + } }, "skill": "Skill", "level": "Level", diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 96da53f..e97a0c8 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -132,7 +132,13 @@ "ninjutsu": "Ninjutsu" }, "peculiarities": { - "title_new": "Nouvelle particularité" + "title_new": "New peculiarity", + "types": { + "distinction": "Distinction", + "passion": "Passion", + "adversity": "Adversity", + "anxiety": "Anxiety" + } }, "skill": "Habilidad", "level": "Nivel", diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index ed19295..3b1766a 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -132,7 +132,13 @@ "ninjutsu": "Ninjutsu" }, "peculiarities": { - "title_new": "Nouvelle particularité" + "title_new": "Nouvelle particularité", + "types": { + "distinction": "Aptitude", + "passion": "Passion", + "adversity": "Coup du sort", + "anxiety": "Défaillance" + } }, "skill": "Compétence", "level": "Niveau", diff --git a/system/scripts/items/peculiarity-sheet.js b/system/scripts/items/peculiarity-sheet.js index dcdfc7a..c00eb21 100644 --- a/system/scripts/items/peculiarity-sheet.js +++ b/system/scripts/items/peculiarity-sheet.js @@ -24,7 +24,10 @@ export class PeculiaritySheetL5r5e extends ItemSheetL5r5e { async getData() { const sheetData = await super.getData(); - sheetData.data.subTypesList = PeculiaritySheetL5r5e.types; + sheetData.data.subTypesList = PeculiaritySheetL5r5e.types.map((e) => ({ + id: e, + label: game.i18n.localize("l5r5e.peculiarities.types." + e), + })); return sheetData; } diff --git a/system/templates/items/peculiarity/peculiarity-sheet.html b/system/templates/items/peculiarity/peculiarity-sheet.html index eddb154..6a04efa 100644 --- a/system/templates/items/peculiarity/peculiarity-sheet.html +++ b/system/templates/items/peculiarity/peculiarity-sheet.html @@ -17,7 +17,7 @@