SimonStnn / pop-a-loon

The new rising trend (literally) that changes the browser game completely.
https://pop-a-loon.gitbook.io
Apache License 2.0
11 stars 6 forks source link

Equal balloon spawn chances in development mode #274

Closed SimonStnn closed 1 month ago

SimonStnn commented 2 months ago

close #269

SimonStnn commented 1 month ago

Double checked and this will not run in production.

// Output code
// e is balloonClasses and t is spawnChances
const e = Object.values(a),
  t = e.map((e) => e.spawn_chance),
  r = new ((0, d.weightedRandom)(e, t, { default: a.Default }))();