Fix #21 : Add the missing helper
This commit is contained in:
@@ -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]
|
||||
})
|
||||
|
Reference in New Issue
Block a user