Minor fixes

This commit is contained in:
2022-08-16 21:21:37 +02:00
parent 30ef811bbf
commit 8839236214
22 changed files with 100 additions and 26 deletions

View File

@ -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);
}