Created
October 11, 2014 17:33
-
-
Save lefnire/c34c997c5f89d616c7ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/models/user.js b/src/models/user.js | |
index 367178a..16031b1 100644 | |
--- a/src/models/user.js | |
+++ b/src/models/user.js | |
@@ -175,7 +175,9 @@ var UserSchema = new Schema({ | |
// Then add quest pets | |
_.transform(shared.content.questPets, function(m,v,k){ m[k] = Number; }), | |
// Then add additional pets (backer, contributor) | |
- _.transform(shared.content.specialPets, function(m,v,k){ m[k] = Number; }) | |
+ _.transform(shared.content.specialPets, function(m,v,k){ | |
+ m[k] = k=='JackOLantern-Base' ? {type:Number, 'default':5} : Number; | |
+ }) | |
), | |
currentPet: String, // Cactus-Desert | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We'll want to: