refactor: move randomVal to a lib

This commit is contained in:
Blade Barringer
2016-09-26 08:14:18 -05:00
parent 331993c1df
commit 913cb16638
9 changed files with 13 additions and 15 deletions

View File

@@ -609,7 +609,7 @@ schema.methods._processCollectionQuest = async function processCollectionQuest (
let itemsFound = {};
_.times(progress.collectedItems, () => {
let item = shared.fns.randomVal(quest.collect, {key: true});
let item = shared.randomVal(quest.collect, {key: true});
if (!itemsFound[item]) {
itemsFound[item] = 0;