From ceb54c69b6be98ffd3165b81b1730724d444c91c Mon Sep 17 00:00:00 2001 From: Daan Breur Date: Sat, 27 Nov 2021 15:32:48 +0100 Subject: [PATCH] Get shape-percentage and use it in root.map Signed-off-by: Daan Breur --- src/js/game/core.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/game/core.js b/src/js/game/core.js index 2b49a9fd..2e31ebbf 100644 --- a/src/js/game/core.js +++ b/src/js/game/core.js @@ -170,12 +170,16 @@ export class GameCore { * @param {object} param1 * @param {number} param1.seed * @param {boolean} param1.allowNonPrimaryColors + * @param {number} param1.fullShapePercentage + * @param {number} param1.wierdShapePercentage * */ - initNewGame({ seed, allowNonPrimaryColors }) { + initNewGame({ seed, allowNonPrimaryColors, fullShapePercentage, wierdShapePercentage }) { logger.log("Initializing new game"); this.root.gameIsFresh = true; this.root.map.seed = seed; this.root.map.allowNonPrimaryColors = allowNonPrimaryColors; + this.root.map.fullShapePercentage = fullShapePercentage; + this.root.map.wierdShapePercentage = wierdShapePercentage; logger.log("Initializing newGame with seed: ", this.root.map.seed);