From 1218bbb20fe303c97e6bfb1eaaca5d01a84a17fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Wed, 20 Sep 2023 20:14:17 +0200 Subject: [PATCH] reduced correlation between mandelbulbs --- src/ts/model/starSystemModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/model/starSystemModel.ts b/src/ts/model/starSystemModel.ts index dacc211e3..b668361bc 100644 --- a/src/ts/model/starSystemModel.ts +++ b/src/ts/model/starSystemModel.ts @@ -53,7 +53,7 @@ export class StarSystemModel { } public getBodyTypeOfPlanet(index: number) { - if(uniformRandBool(0.05, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + index + 10)) return BODY_TYPE.MANDELBULB; + if (uniformRandBool(0.05, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + (index + 20) * 50)) return BODY_TYPE.MANDELBULB; if (uniformRandBool(0.5, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + index)) return BODY_TYPE.TELLURIC; return BODY_TYPE.GAS; }