diff --git a/js/wavegen.js b/js/wavegen.js index 9180f48..ae71d5d 100644 --- a/js/wavegen.js +++ b/js/wavegen.js @@ -40,24 +40,24 @@ function waveGen(hex) { var fv = randInt(0, MainHex.sides); addNewBlock(fv, colors[randInt(0, colors.length)], 1.6 + (this.difficulty/15) * 3); if (this.ct > 7) { - // var nextPattern = randInt(0, 20 + 8); - // if (nextPattern > 8 + 17) { - // this.ct = 0; - // this.currentFunction = this.doubleGeneration; - // } else if (nextPattern > 8 + 14) { - // this.ct = 0; - // this.currentFunction = this.crosswiseGeneration; - // } else if (nextPattern > 8 + 11) { - // this.ct = 0; - // this.currentFunction = this.spiralGeneration; - // } else if (nextPattern > 8 + 8) { - // this.ct = 0; - // this.currentFunction = this.circleGeneration; - // } else if (nextPattern > 8 + 5) { - // this.ct = 0; + var nextPattern = randInt(0, 20 + 8); + if (nextPattern > 8 + 17) { + this.ct = 0; + this.currentFunction = this.doubleGeneration; + } else if (nextPattern > 8 + 14) { + this.ct = 0; + this.currentFunction = this.crosswiseGeneration; + } else if (nextPattern > 8 + 11) { + this.ct = 0; + this.currentFunction = this.spiralGeneration; + } else if (nextPattern > 8 + 8) { + this.ct = 0; + this.currentFunction = this.circleGeneration; + } else if (nextPattern > 8 + 5) { + this.ct = 0; this.currentFunction = this.halfCircleGeneration; this.ct = 0 - // } + } } }