mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
refactor: Move user argument to options in randomVal function
This commit is contained in:
@@ -609,7 +609,7 @@ schema.methods._processCollectionQuest = async function processCollectionQuest (
|
||||
let itemsFound = {};
|
||||
|
||||
_.times(progress.collectedItems, () => {
|
||||
let item = shared.fns.randomVal(user, quest.collect, {key: true, seed: Math.random()});
|
||||
let item = shared.fns.randomVal(quest.collect, {key: true});
|
||||
|
||||
if (!itemsFound[item]) {
|
||||
itemsFound[item] = 0;
|
||||
|
||||
Reference in New Issue
Block a user