test picker with img

actor perm and selected character
fix for some key case in french lang
This commit is contained in:
Vlyan
2020-12-10 23:34:41 +01:00
parent 88162a11c4
commit 8f59902130
10 changed files with 43 additions and 14 deletions

View File

@@ -75,6 +75,12 @@ Hooks.once("init", async function () {
return game.i18n.localize(key);
});
Handlebars.registerHelper("localizeSkillId", function (skillName) {
const key =
"l5r5e.skills." + RollL5r5e.getCategoryForSkillId(skillName.toLowerCase()) + "." + skillName.toLowerCase();
return game.i18n.localize(key);
});
Handlebars.registerHelper("localizeRing", function (ringName) {
const key = "l5r5e.rings." + ringName.toLowerCase();
return game.i18n.localize(key);