Fix o.get by calling random.pick instead of the removed random.index

This commit is contained in:
Christoph Diehl 2017-06-06 07:12:31 +02:00
parent 3e8c5c82f7
commit 6110524f78

View file

@ -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) {