From 27021be2be35909df5a605cb9ad512cd1007b20c Mon Sep 17 00:00:00 2001 From: TcePrepK <56453014+TcePrepK@users.noreply.github.com> Date: Mon, 5 Oct 2020 13:38:01 +0300 Subject: [PATCH] I tried to make speed multipliers more organized. The speed multipliers made by Control and code is by me. --- src/js/game/upgrades.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/js/game/upgrades.js b/src/js/game/upgrades.js index db8997a1..f83aa09b 100644 --- a/src/js/game/upgrades.js +++ b/src/js/game/upgrades.js @@ -7,7 +7,14 @@ export const finalGameShape = "RuCw--Cw:----Ru--"; export const rocketShape = "CbCuCbCu:Sr------:--CrSrCr:CwCwCwCw"; export const blueprintShape = "CbCbCbRb:CwCwCwCw"; -const fixedImprovements = [0.5, 0.5, 1, 1, 2, 1, 1]; +const fixedImprovements = []; + +for (let i = 0; i < 6; i++) { + fixedImprovements.push(0.25); +} +for (let i = 0; i < 1; i++) { + fixedImprovements.push(0.5); +} const numEndgameUpgrades = !IS_DEMO ? 20 - fixedImprovements.length - 1 : 0; @@ -22,8 +29,13 @@ function generateEndgameUpgrades() { })); } -for (let i = 0; i < numEndgameUpgrades; ++i) { - fixedImprovements.push(0.1); +if (numEndgameUpgrades != 0) { + for (let i = 0; i < 8; i++) { + fixedImprovements.push(0.5); + } + for (let i = 0; i < 4; i++) { + fixedImprovements.push(0.75); + } } /** @typedef {{