Fix #21 : Add the missing helper

This commit is contained in:
2023-08-27 20:43:02 +02:00
parent 893ca4cfa5
commit c22b950f7c
42 changed files with 131 additions and 128 deletions

View File

@@ -43,6 +43,9 @@ export class Hero6Utility {
Handlebars.registerHelper('mul', function (a, b) {
return Number(a) * Number(b);
})
Handlebars.registerHelper('add', function (a, b) {
return (Number(a) || 0) + (Number(b) || 0);
})
Handlebars.registerHelper('locationLabel', function (key) {
return __locationNames[key]
})