Changed rpg-docs folder to app

This commit is contained in:
Stefan Zermatten
2018-05-21 14:21:07 +02:00
parent 45e9f491ff
commit 52baf297ca
419 changed files with 12 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
Template.effectsViewList.helpers({
effects: function(){
var selector = {
"parent.id": this.parentId,
"charId": this.charId,
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
}
let effects = Effects.find(selector, {
fields: {parent: 0},
}).fetch();
return _.sortBy(effects, effect => statOrder[effect.stat] || 999);
}
});