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:
Alys
2015-11-27 06:12:44 +10:00
parent ad347090c3
commit 9f53365648

View File

@@ -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] = {};