mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add comment for refactoring to fix reset bug that doesn't unequip gear properly (e.g., https://github.com/HabitRPG/habitrpg/issues/6304)
This commit is contained in:
@@ -695,6 +695,7 @@ api.wrap = function(user, main) {
|
|||||||
_.each(['per', 'int', 'con', 'str', 'points', 'gp', 'exp', 'mp'], function(value) {
|
_.each(['per', 'int', 'con', 'str', 'points', 'gp', 'exp', 'mp'], function(value) {
|
||||||
return stats[value] = 0;
|
return stats[value] = 0;
|
||||||
});
|
});
|
||||||
|
// TODO during refactoring: move all gear code from rebirth() to its own function and then call it in reset() as well
|
||||||
gear = user.items.gear;
|
gear = user.items.gear;
|
||||||
_.each(['equipped', 'costume'], function(type) {
|
_.each(['equipped', 'costume'], function(type) {
|
||||||
gear[type] = {};
|
gear[type] = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user