mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-19 04:14:40 +00:00
update userschema to use specialPets from habitrpg-shared https://github.com/HabitRPG/habitrpg-shared/pull/45
This commit is contained in:
parent
e7373b173d
commit
9bb4e2c272
1 changed files with 3 additions and 6 deletions
|
|
@ -21,6 +21,8 @@ var eggPotionMapping = _.transform(items.items.eggs, function(m, egg){
|
|||
}));
|
||||
})
|
||||
|
||||
var specialPetsMapping = items.items.specialPets; // may need to revisit if we add additional information about the special pets
|
||||
|
||||
var UserSchema = new Schema({
|
||||
// ### UUID and API Token
|
||||
_id: {
|
||||
|
|
@ -122,12 +124,7 @@ var UserSchema = new Schema({
|
|||
// First transform to a 1D eggs/potions mapping
|
||||
_.transform(eggPotionMapping, function(m,v,k){ m[k] = Number; }),
|
||||
// Then add additional pets (backer, contributor)
|
||||
{
|
||||
'Wolf-Veteran': Number,
|
||||
'Wolf-Cerberus': Number,
|
||||
'Dragon-Hydra': Number,
|
||||
'Turkey-Base': Number
|
||||
}
|
||||
_.transform(specialPetsMapping, function(m,v,k){ m[k] = Number; })
|
||||
),
|
||||
currentPet: String, // Cactus-Desert
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue