First round of changes
This commit is contained in:
@@ -64,6 +64,11 @@ export const RegisterHandlebars = function () {
|
||||
return objects.join("");
|
||||
});
|
||||
|
||||
// Chiaroscuro: return the flat bonus for a given skill rank id
|
||||
Handlebars.registerHelper("skillRankBonus", (rankId) => {
|
||||
return CONFIG.l5r5e.skillRanks?.[rankId]?.bonus ?? 0;
|
||||
});
|
||||
|
||||
// Add a setter
|
||||
Handlebars.registerHelper("setVar", function (varName, varValue, options) {
|
||||
options.data.root[varName] = varValue;
|
||||
|
||||
Reference in New Issue
Block a user