mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
classes: misc fixes
This commit is contained in:
parent
c85450db04
commit
6ae14cc42f
3 changed files with 10 additions and 4 deletions
|
|
@ -9,7 +9,8 @@ db.users.find().forEach(function(user){
|
|||
|
||||
user.stats.class = 'warrior';
|
||||
|
||||
// set default stats (inc mp)
|
||||
// set default stats (inc mp?)
|
||||
user.stats.points = user.stats.lvl;
|
||||
|
||||
// grant backer/contrib gear, 300, rather than using js logic
|
||||
|
||||
|
|
@ -27,10 +28,15 @@ db.users.find().forEach(function(user){
|
|||
user.preferences.sleep = user.flags.rest;
|
||||
delete user.flags.rest;
|
||||
|
||||
// migrate task.priority from !, !!, !!! => 1, 1.5, 2
|
||||
_.each(user.tasks, function(task){
|
||||
|
||||
// migrate task.priority from !, !!, !!! => 1, 1.5, 2
|
||||
var p = task.priority;
|
||||
task.priority = p == '!!!' ? 2 : p == '!!' ? 1.5 : 1;
|
||||
|
||||
// Add task attributes
|
||||
task.attribute = 'str';
|
||||
|
||||
})
|
||||
|
||||
db.users.update({_id:user._id}, user);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
"css": [
|
||||
"bower_components/bootstrap/docs/assets/css/bootstrap.css",
|
||||
"app.css",
|
||||
"bower_components/habitrpg-shared/dist/spritesheets.css"
|
||||
"bower_components/habitrpg-shared/dist/habitrpg-shared.css"
|
||||
]
|
||||
},
|
||||
"static": {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ script(id='partials/options.profile.avatar.html', type='text/ng-template')
|
|||
// Bangs
|
||||
li.customize-menu
|
||||
menu(label='Bangs')
|
||||
button(class='head_base_0 customize-option', type='button', ng-click='set("preferences.hair.bangs",0)')
|
||||
button(class='head_base_0 customize-option', type='button', ng-click='set({"preferences.hair.bangs":0})')
|
||||
button(class='hair_bangs_1_{{user.preferences.hair.color}} customize-option', type='button', ng-click='set({"preferences.hair.bangs":1})')
|
||||
button(class='hair_bangs_2_{{user.preferences.hair.color}} customize-option', type='button', ng-click='set({"preferences.hair.bangs":2})')
|
||||
button(class='hair_bangs_3_{{user.preferences.hair.color}} customize-option', type='button', ng-click='set({"preferences.hair.bangs":3})')
|
||||
|
|
|
|||
Loading…
Reference in a new issue