Added color options for containers, added spell lists

This commit is contained in:
Thaum
2015-02-12 13:08:20 +00:00
parent 5e98154e8d
commit 7441f09f37
32 changed files with 226 additions and 84 deletions

View File

@@ -1,10 +1,16 @@
Template.features.helpers({
features: function(){
var features = Features.find({charId: this._id});
var features = Features.find({charId: this._id}, {sort: {name: 1}});
return features;
},
hasUses: function(){
return this.usesValue() > 0;
},
colorClass: function(){
return getColorClass(this.color)
},
featureOrder: function(){
return _.indexOf(_.keys(colorOptions), this.color);
}
});