buffViewList is now split into "Conditions" and "Buffs"

This commit is contained in:
Jacob
2017-08-09 10:16:50 +01:00
parent a3b0c6cafd
commit 3c06529906
2 changed files with 22 additions and 7 deletions

View File

@@ -1,18 +1,22 @@
Template.buffViewList.helpers({
conditions: function(){
var selector = {
"charId": this._id,
"type": "inate",
};
return Buffs.find(selector);
},
buffs: function(){
var selector = {
// "parent.id": this.parentId,
"charId": this._id,
"type": "custom",
};
// if (this.parentGroup){
// selector["parent.group"] = this.parentGroup;
// }
return Buffs.find(selector);
}
});
Template.buffViewList.events({
"click #addBuff": function(event, template){
"click #addCondition": function(event, template){
pushDialogStack({
template: "conditionLibraryDialog",
element: event.currentTarget,