Fix o.get by calling random.pick instead of the removed random.index
This commit is contained in:
parent
3e8c5c82f7
commit
6110524f78
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Objects.prototype.get = function (category, last) {
|
|||
if (last) {
|
||||
return this.container[category].slice(-1)[0]
|
||||
}
|
||||
return random.index(this.container[category])
|
||||
return random.pick(this.container[category])
|
||||
}
|
||||
|
||||
Objects.prototype.pick = function (category, last) {
|
||||
|
|
Loading…
Reference in a new issue