diff --git a/migrations/20131204_classes.js b/migrations/20131204_classes.js index 0e890cad88..87c53f7b3a 100644 --- a/migrations/20131204_classes.js +++ b/migrations/20131204_classes.js @@ -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); diff --git a/public/manifest.json b/public/manifest.json index a17b2846a9..a81693508a 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -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": { diff --git a/views/options/profile.jade b/views/options/profile.jade index 7e0b98de7c..784cb6c96a 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -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})')