mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
classes: fixes to class-selection & reroll, remove show/hide gear since
we're using costumes
This commit is contained in:
@@ -22,14 +22,13 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
|
||||
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)"))
|
||||
return;
|
||||
User.setMultiple({
|
||||
'stats.class': '',
|
||||
'flags.classSelected': false,
|
||||
//'stats.points': this is handled on the server
|
||||
'stats.str': 0,
|
||||
'stats.def': 0,
|
||||
'stats.per': 0,
|
||||
'stats.int': 0
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$scope.save = function(){
|
||||
|
||||
Reference in New Issue
Block a user