Added basic timing, made features a part of character schema

This commit is contained in:
Thaum
2014-11-13 12:45:57 +00:00
parent 7ab97a17cc
commit 0ead14d159
10 changed files with 84 additions and 90 deletions

View File

@@ -0,0 +1,11 @@
pushBuffs = function(id, buffArray){
_.each(buffArray, function(buff){
Characters.update(id, {$push: {"buff.stat": buff.effect}});
});
};
pullBuffs = function(id, buffArray){
_.each(buffArray, function(buff){
Characters.update(id, {$pull: {"buff.stat": {_id: buff.effect._id} } });
});
};