classes: charge gems for class-change

This commit is contained in:
Tyler Renelle
2013-12-16 11:47:55 -07:00
parent 5f689960b6
commit 7c2e803475
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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({});
}