mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
12 lines
245 B
JavaScript
12 lines
245 B
JavaScript
import times from 'lodash/times';
|
|
import autoAllocate from '../../fns/autoAllocate';
|
|
|
|
export default function allocateNow (user) {
|
|
times(user.stats.points, () => autoAllocate(user));
|
|
user.stats.points = 0;
|
|
|
|
return [
|
|
user.stats,
|
|
];
|
|
}
|