mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
12 lines
237 B
JavaScript
12 lines
237 B
JavaScript
import _ from 'lodash';
|
|
import autoAllocate from '../fns/autoAllocate';
|
|
|
|
module.exports = function allocateNow (user) {
|
|
_.times(user.stats.points, () => autoAllocate(user));
|
|
user.stats.points = 0;
|
|
|
|
return [
|
|
user.stats,
|
|
];
|
|
};
|