Added more material design touch response, swipe pages, and began effects lists
This commit is contained in:
12
rpg-docs/lib/methods/updateEffect.js
Normal file
12
rpg-docs/lib/methods/updateEffect.js
Normal file
@@ -0,0 +1,12 @@
|
||||
Meteor.methods({
|
||||
updateEffect: function (charId, attributeName, effectId, newEffect) {
|
||||
var selector = {_id: charId};
|
||||
selector[attributeName + ".effects._id"] = effectId;
|
||||
var setter = {};
|
||||
setter[attributeName + ".effects.$"] = newEffect
|
||||
Characters.update(
|
||||
selector,
|
||||
{ $set: setter }
|
||||
)
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user