From da64a46ad87d6f267aae2dfdb573140ffa1f5e2e Mon Sep 17 00:00:00 2001 From: tobspr Date: Mon, 11 May 2020 23:42:10 +0200 Subject: [PATCH] Increase spawn rate of rare shapes --- src/js/core/config.js | 2 +- src/js/game/map_chunk.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/core/config.js b/src/js/core/config.js index d180ebcc..df38620d 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -39,7 +39,7 @@ export const globalConfig = { undergroundBeltMaxTiles: 5, buildingSpeeds: { - cutter: 1 / 2, + cutter: 1 / 4, rotater: 1 / 1, painter: 1 / 3, mixer: 1 / 2, diff --git a/src/js/game/map_chunk.js b/src/js/game/map_chunk.js index 992e3115..243238af 100644 --- a/src/js/game/map_chunk.js +++ b/src/js/game/map_chunk.js @@ -162,8 +162,8 @@ export class MapChunk { weights = { [enumSubShape.rect]: 100, [enumSubShape.circle]: Math_round(50 + clamp(distanceToOriginInChunks * 2, 0, 50)), - [enumSubShape.star]: Math_round(5 + clamp(distanceToOriginInChunks, 0, 30)), - [enumSubShape.windmill]: Math_round(3 + clamp(distanceToOriginInChunks / 2, 0, 20)), + [enumSubShape.star]: Math_round(9 + clamp(distanceToOriginInChunks, 0, 30)), + [enumSubShape.windmill]: Math_round(6 + clamp(distanceToOriginInChunks / 2, 0, 20)), }; if (distanceToOriginInChunks < 5) {