Minor fixes
This commit is contained in:
@ -35,7 +35,7 @@ export class PegasusUtility {
|
||||
PegasusCommands.init();
|
||||
|
||||
Handlebars.registerHelper('count', function (list) {
|
||||
return list.length;
|
||||
return (list) ? list.length : 0;
|
||||
})
|
||||
Handlebars.registerHelper('includes', function (array, val) {
|
||||
return array.includes(val);
|
||||
@ -443,7 +443,8 @@ export class PegasusUtility {
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html'
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html',
|
||||
"systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html"
|
||||
]
|
||||
return loadTemplates(templatePaths);
|
||||
}
|
||||
|
Reference in New Issue
Block a user