Conditions are now separate from buffs, like in #109

This commit is contained in:
Jacob
2017-09-04 19:25:05 +01:00
parent b3d0db1f02
commit 6dd92586a4
12 changed files with 118 additions and 52 deletions

View File

@@ -54,7 +54,7 @@
<div flex class="bottom list">
<div class="conditionsList">
{{#each condition in conditions}}
{{>buffListItem buff=condition}}
{{>conditionView condition=condition}}
{{/each}}
</div>
{{#if buffs.count}}

View File

@@ -1,15 +1,10 @@
Template.stats.helpers({
conditions: function(){
var selector = {
"charId": this._id,
"type": "inate",
};
return Buffs.find(selector);
conditions: function() {
return Conditions.find({charId: this._id});
},
buffs: function(){
buffs: function() {
var selector = {
"charId": this._id,
"type": "custom",
};
return Buffs.find(selector);
},