fix: Change quest collection to calculate items on the server only

This commit is contained in:
Blade Barringer
2016-06-02 17:36:29 -05:00
parent c04bac44e7
commit 58cd634255
13 changed files with 34 additions and 59 deletions

View File

@@ -376,9 +376,7 @@ export let schema = new Schema({
progress: {
up: {type: Number, default: 0},
down: {type: Number, default: 0},
collect: {type: Schema.Types.Mixed, default: () => {
return {};
}}, // {feather:1, ingot:2}
collect: {type: Number, default: 0},
},
completed: String, // When quest is done, we move it from key => completed, and it's a one-time flag (for modal) that they unset by clicking "ok" in browser
RSVPNeeded: {type: Boolean, default: false}, // Set to true when invite is pending, set to false when quest invite is accepted or rejected, quest starts, or quest is cancelled