Add rolls and new fixes
All checks were successful
Release Creation / build (release) Successful in 1m2s
All checks were successful
Release Creation / build (release) Successful in 1m2s
This commit is contained in:
@@ -168,7 +168,22 @@ export default class HellbornUtils {
|
||||
Handlebars.registerHelper('isCreature', function (key) {
|
||||
return key === "creature" || key === "daemon";
|
||||
})
|
||||
|
||||
Handlebars.registerHelper('getRomanLevel', function (level) {
|
||||
if (level=== "highpowers") return "High";
|
||||
if (level === "mastery") return "Mastery";
|
||||
level = parseInt(level);
|
||||
if (level === 0) return "I";
|
||||
if (level === 1) return "II";
|
||||
if (level === 2) return "III";
|
||||
if (level === 3) return "IV";
|
||||
if (level === 4) return "V";
|
||||
if (level === 5) return "VI";
|
||||
if (level === 6) return "VII";
|
||||
if (level === 7) return "VIII";
|
||||
if (level === 8) return "IX";
|
||||
if (level === 9) return "X";
|
||||
return level;
|
||||
})
|
||||
// Handle v12 removal of this helper
|
||||
Handlebars.registerHelper('select', function (selected, options) {
|
||||
const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected));
|
||||
|
||||
Reference in New Issue
Block a user