costumes: add costume support in inventory

This commit is contained in:
Tyler Renelle
2013-12-04 22:50:20 -07:00
parent decaa2867b
commit 5fea978e6b
4 changed files with 40 additions and 9 deletions
+10 -3
View File
@@ -114,12 +114,18 @@ var UserSchema = new Schema({
m[v.key]['default'] = true;
}),
current: {
equipped: {
weapon: {type: String, 'default': 'weapon_warrior_0'},
armor: {type: String, 'default': 'armor_warrior_0'},
head: {type: String, 'default': 'head_warrior_0'},
shield: {type: String, 'default': 'shield_warrior_0'}
}
},
costume: {
weapon: {type: String, 'default': 'weapon_warrior_0'},
armor: {type: String, 'default': 'armor_warrior_0'},
head: {type: String, 'default': 'head_warrior_0'},
shield: {type: String, 'default': 'shield_warrior_0'}
},
},
// -------------- Animals -------------------
@@ -209,7 +215,8 @@ var UserSchema = new Schema({
skin: {type:String, 'default':'white'},
timezoneOffset: Number,
language: String,
automaticAllocation: Boolean
automaticAllocation: Boolean,
useCostume: Boolean
},
profile: {
blurb: String,