File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/kitten-scientists/source/helper Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- import { difference , shuffleArray } from "@oliversalzburg/js-utils/data/array.js" ;
1
+ import { difference } from "@oliversalzburg/js-utils/data/array.js" ;
2
2
import { isNil , mustExist } from "@oliversalzburg/js-utils/data/nil.js" ;
3
3
import { KittenScientists } from "../KittenScientists.js" ;
4
4
import { WorkshopManager } from "../WorkshopManager.js" ;
@@ -249,9 +249,7 @@ export class BulkPurchaseHelper {
249
249
let iterations = 0 ;
250
250
const buildsCommitted = new Array < PotentialBuild > ( ) ;
251
251
while ( iterations < 1e5 ) {
252
- // Randomize the potential builds each iteration. This should help evening out
253
- // build requests for buildings that regularly appear first in the list.
254
- const candidatesThisIteration = shuffleArray ( difference ( potentialBuilds , buildsCommitted ) ) ;
252
+ const candidatesThisIteration = difference ( potentialBuilds , buildsCommitted ) ;
255
253
256
254
let buildThisIteration = 0 ;
257
255
const committedThisIteration = [ ] ;
You can’t perform that action at this time.
0 commit comments