Added proficiencies to printed sheet; some fixes

This commit is contained in:
Stefan Zermatten
2017-12-12 15:54:21 +02:00
parent 8349f7da9b
commit 64b3ca6066
8 changed files with 142 additions and 34 deletions

View File

@@ -14,4 +14,16 @@ Template.printedCharacterSheet.helpers({
classes: function(){
return Classes.find({charId: this._id}, {sort: {createdAt: 1}});
},
weaponProfs: function(){
var profs = Proficiencies.find({charId: this._id, type: "weapon"});
return removeDuplicateProficiencies(profs);
},
armorProfs: function(){
var profs = Proficiencies.find({charId: this._id, type: "armor"});
return removeDuplicateProficiencies(profs);
},
toolProfs: function(){
var profs = Proficiencies.find({charId: this._id, type: "tool"});
return removeDuplicateProficiencies(profs);
},
});