1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

I tried to make speed multipliers more organized.

The speed multipliers made by Control and code is by me.
This commit is contained in:
TcePrepK 2020-10-05 13:38:01 +03:00 committed by GitHub
parent 9f53d9543f
commit 27021be2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {{