diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 12c98e5..4ac220d 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -176,7 +176,7 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets for (var i = 0; i < data.specialTraining.length; i++) { let training = data.specialTraining[i]; - training.attribute = game.i18n.localize(`DG.Skills.${training.key}`); + // training.attribute = game.i18n.localize(`DG.Skills.${training.key}`); training.type = "training"; training.sortLabel = training.name.toUpperCase(); training.actorType = this.actor.type; @@ -809,11 +809,11 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets htmlContent += ` `; if (currentGroup === game.i18n.translations.DG?.TypeSkills?.Art ?? "Art") { - htmlContent += ` `; } else { - htmlContent += ` `; } @@ -822,11 +822,11 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.Craft ?? "Craft" ) { - htmlContent += ` `; } else { - htmlContent += ` `; } @@ -835,12 +835,12 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.ForeignLanguage ?? "Foreign Language" ) { - htmlContent += ` `; } else { - htmlContent += ` `; @@ -850,12 +850,12 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.MilitaryScience ?? "Military Science" ) { - htmlContent += ` `; } else { - htmlContent += ` `; @@ -865,11 +865,11 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.Pilot ?? "Pilot" ) { - htmlContent += ` `; } else { - htmlContent += ` `; } @@ -878,11 +878,11 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.Science ?? "Science" ) { - htmlContent += ` `; } else { - htmlContent += ` `; } @@ -891,11 +891,11 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets currentGroup === game.i18n.translations.DG?.TypeSkills?.Other ?? "Other" ) { - htmlContent += ` `; } else { - htmlContent += ` `; } @@ -945,27 +945,27 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets game.i18n.translations.DG?.Skills?.SkillGroup ?? "Skill Group" }:`; htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; - htmlContent += ` `; htmlContent += ` `; @@ -1084,7 +1084,9 @@ export default class DeltaGreenActorSheet extends foundry.appv1.sheets ([key, skill]) => ({ value: key, group: optionGroups.typedSkills, - label: `${skill.group} (${skill.label})`, + label: + game.i18n.localize(`DG.TypeSkills.${skill.group}`) + + ` (${skill.label})`, targetNumber: skill.proficiency, }) ); diff --git a/templates/actor/partials/attributes-grid-partial.html b/templates/actor/partials/attributes-grid-partial.html index f048a12..d26b434 100644 --- a/templates/actor/partials/attributes-grid-partial.html +++ b/templates/actor/partials/attributes-grid-partial.html @@ -3,7 +3,7 @@