backgrounds now have proficiencies

This commit is contained in:
Stefan Zermatten
2015-06-17 08:49:26 +02:00
parent 6caf19bc99
commit 9ff45dbcc2
6 changed files with 46 additions and 15 deletions

View File

@@ -212,7 +212,15 @@ Template.skillDialogView.helpers({
return Characters.findOne(this.charId, {fields:{_id: 1}});
},
sourceName: function(){
if (this.parent.collection === "Characters") return "inate";
if (this.parent.collection === "Characters"){
if (this.parent.group === "racial"){
return Characters.findOne(this.charId, {fields:{race: 1}}).race || "Race";
}
if (this.parent.group === "background"){
return "Background";
}
return "Innate";
}
return this.getParent().name;
},
operationName: function(){