Added ability to add/remove basic conditions

Conditions are those listed in ./lib/methods/conditions.js
This commit is contained in:
Jacob
2017-07-16 04:27:32 +01:00
parent be92ef224c
commit b3ef43eb70
16 changed files with 316 additions and 54 deletions

View File

@@ -1,9 +0,0 @@
<template name="buff">
<div class="item-slot">
<div class="item inventoryItem layout horizontal center">
<div class="itemName flex">
{{name}}
</div>
</div>
</div>
</template>

View File

@@ -1,5 +0,0 @@
Template.buff.helpers({
name: function() {
return this.name
}
})

View File

@@ -1,14 +0,0 @@
<template name="buffViewList">
{{if buffs.count}}
<paper-material class="card">
<div class="top white paper-font-subhead">
Conditions
</div>
<div flex class="bottom list">
{{#each buffs}}
{{>buff}}
{{/each}}
</div>
</paper-material>
{{/if}}
</template>

View File

@@ -1,12 +0,0 @@
Template.buffViewList.helpers({
buffs: function(){
var selector = {
"parent.id": this.parentId,
"charId": this.charId,
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
}
return Buffs.find(selector);
}
});

View File

@@ -43,7 +43,7 @@
</paper-material>
</div>
<!--Condtions-->
<!-- { { buffViewList } } -->
{{> buffViewList}}
<!--Skills-->
<div>
<paper-material class="card">