most things now working

This commit is contained in:
TheLastScrub
2021-05-01 23:06:20 -07:00
parent 9794019876
commit 086ec8483e
17 changed files with 150 additions and 156 deletions
+13 -6
View File
@@ -99,15 +99,22 @@ Hooks.once('init', async function() {
});
Handlebars.registerHelper('getActorSkillProp', function(actorData, skillName, prop) {
if(skillName != "" && prop != ""){
let skills = actorData.skills;
let skill = skills[skillName];
let propVal = skill[prop];
return propVal;
try{
if(skillName != "" && prop != ""){
let skills = actorData.data.skills;
let skill = skills[skillName];
let propVal = skill[prop];
return propVal;
}
else{
return "";
}
}
else{
catch(ex){
console.log(ex);
return "";
}
});
// looks at system setting for what font to use and returns the class that is then used in the handlebars template that