From 7c2e803475c8a16dd7797ab2c6c51ea308c87e2c Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 16 Dec 2013 11:47:55 -0700 Subject: [PATCH] classes: charge gems for class-change --- public/js/controllers/userCtrl.js | 2 +- views/options/profile.jade | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/js/controllers/userCtrl.js b/public/js/controllers/userCtrl.js index 2546101f76..f6e6e57e38 100644 --- a/public/js/controllers/userCtrl.js +++ b/public/js/controllers/userCtrl.js @@ -17,7 +17,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$ $scope.changeClass = function(klass){ if (!klass) { - if (!confirm("Are you sure you want to re-roll? This will reset your character's class and allocated points (you'll get them all back to re-allocate)")) + if (!confirm("Are you sure? This will reset your character's class and allocated points (you'll get them all back to re-allocate), and costs 3 gems")) return; return User.user.ops.changeClass({}); } diff --git a/views/options/profile.jade b/views/options/profile.jade index 73a69a583f..3380222ec0 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -123,7 +123,10 @@ script(id='partials/options.profile.stats.html', type='text/ng-template') .span4.border-right(ng-show='user.stats.lvl >= 5') h4 | {{user.stats.class}}  - a.btn.btn-danger.btn-mini(ng-click='changeClass(null)') Re-roll + a.btn.btn-danger.btn-mini(ng-click='changeClass(null)') + | Change Class  + small 3 + h6 Points: {{user.stats.points}} fieldset label.checkbox