mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
grunt
This commit is contained in:
parent
3c8ebf96d7
commit
6d3aa67192
1 changed files with 1 additions and 1 deletions
2
dist/habitrpg-shared.js
vendored
2
dist/habitrpg-shared.js
vendored
|
|
@ -14480,7 +14480,7 @@ api.wrap = function(user, main) {
|
|||
randomVal: function(obj, options) {
|
||||
var array, rand;
|
||||
array = (options != null ? options.key : void 0) ? _.keys(obj) : _.values(obj);
|
||||
rand = user.fns.predictableRandom(typeof option !== "undefined" && option !== null ? option.seed : void 0);
|
||||
rand = user.fns.predictableRandom(options != null ? options.seed : void 0);
|
||||
return array[Math.floor(rand * array.length)];
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue