1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-17 12:11:51 +00:00

add allowNonPrimaryColors to GameCore.initNewGame

This commit is contained in:
Daan Breur 2021-11-21 21:30:36 +01:00
parent f5f790f55a
commit cc8db54831

View File

@ -169,11 +169,13 @@ export class GameCore {
*
* @param {object} param1
* @param {number} param1.seed
* @param {boolean} param1.allowNonPrimaryColors
* */
initNewGame({ seed }) {
initNewGame({ seed, allowNonPrimaryColors }) {
logger.log("Initializing new game");
this.root.gameIsFresh = true;
this.root.map.seed = seed;
this.root.map.allowNonPrimaryColors = allowNonPrimaryColors;
logger.log("Initializing newGame with seed: ", this.root.map.seed);