Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Based on https://github.com/mekanism/Mekanism/blob/55895f5c33ca96a2ccde01e3aab2ec2179fd0a7d/src/main/java/mekanism/common/util/MekanismUtils.java#L218
- // This is for "regular" machines
- // Some gas machines speed multiplier is basically x1, x2, x4, ...
- const UpgradeMultiplier = 10; // Config setting, defaults to 10
- for (let s = 0; s <= 8; s++) {
- console.log();
- for (let e = 0; e <= 8; e++) {
- console.log(`S${s} x${(4/3)**s}\t| E${e} | => ${UpgradeMultiplier**(s/4-e/8)}`);
- }
- }
- /*
- Output, where the format is like:
- S[number of speed upgrades] [speed multiplier] | E[number of energy upgrades] | => [energyPerTick multiplier]
- S0 x1 | E0 | => 1
- S0 x1 | E1 | => 0.7498942093324559
- S0 x1 | E2 | => 0.5623413251903491
- S0 x1 | E3 | => 0.4216965034285822
- S0 x1 | E4 | => 0.31622776601683794
- S0 x1 | E5 | => 0.23713737056616552
- S0 x1 | E6 | => 0.17782794100389226
- S0 x1 | E7 | => 0.1333521432163324
- S0 x1 | E8 | => 0.1
- S1 x1.3333333333333333 | E0 | => 1.7782794100389228
- S1 x1.3333333333333333 | E1 | => 1.333521432163324
- S1 x1.3333333333333333 | E2 | => 1
- S1 x1.3333333333333333 | E3 | => 0.7498942093324559
- S1 x1.3333333333333333 | E4 | => 0.5623413251903491
- S1 x1.3333333333333333 | E5 | => 0.4216965034285822
- S1 x1.3333333333333333 | E6 | => 0.31622776601683794
- S1 x1.3333333333333333 | E7 | => 0.23713737056616552
- S1 x1.3333333333333333 | E8 | => 0.17782794100389226
- S2 x1.7777777777777777 | E0 | => 3.1622776601683795
- S2 x1.7777777777777777 | E1 | => 2.371373705661655
- S2 x1.7777777777777777 | E2 | => 1.7782794100389228
- S2 x1.7777777777777777 | E3 | => 1.333521432163324
- S2 x1.7777777777777777 | E4 | => 1
- S2 x1.7777777777777777 | E5 | => 0.7498942093324559
- S2 x1.7777777777777777 | E6 | => 0.5623413251903491
- S2 x1.7777777777777777 | E7 | => 0.4216965034285822
- S2 x1.7777777777777777 | E8 | => 0.31622776601683794
- S3 x2.37037037037037 | E0 | => 5.623413251903491
- S3 x2.37037037037037 | E1 | => 4.216965034285822
- S3 x2.37037037037037 | E2 | => 3.1622776601683795
- S3 x2.37037037037037 | E3 | => 2.371373705661655
- S3 x2.37037037037037 | E4 | => 1.7782794100389228
- S3 x2.37037037037037 | E5 | => 1.333521432163324
- S3 x2.37037037037037 | E6 | => 1
- S3 x2.37037037037037 | E7 | => 0.7498942093324559
- S3 x2.37037037037037 | E8 | => 0.5623413251903491
- S4 x3.160493827160493 | E0 | => 10
- S4 x3.160493827160493 | E1 | => 7.498942093324558
- S4 x3.160493827160493 | E2 | => 5.623413251903491
- S4 x3.160493827160493 | E3 | => 4.216965034285822
- S4 x3.160493827160493 | E4 | => 3.1622776601683795
- S4 x3.160493827160493 | E5 | => 2.371373705661655
- S4 x3.160493827160493 | E6 | => 1.7782794100389228
- S4 x3.160493827160493 | E7 | => 1.333521432163324
- S4 x3.160493827160493 | E8 | => 1
- S5 x4.213991769547324 | E0 | => 17.78279410038923
- S5 x4.213991769547324 | E1 | => 13.33521432163324
- S5 x4.213991769547324 | E2 | => 10
- S5 x4.213991769547324 | E3 | => 7.498942093324558
- S5 x4.213991769547324 | E4 | => 5.623413251903491
- S5 x4.213991769547324 | E5 | => 4.216965034285822
- S5 x4.213991769547324 | E6 | => 3.1622776601683795
- S5 x4.213991769547324 | E7 | => 2.371373705661655
- S5 x4.213991769547324 | E8 | => 1.7782794100389228
- S6 x5.6186556927297655 | E0 | => 31.622776601683793
- S6 x5.6186556927297655 | E1 | => 23.71373705661655
- S6 x5.6186556927297655 | E2 | => 17.78279410038923
- S6 x5.6186556927297655 | E3 | => 13.33521432163324
- S6 x5.6186556927297655 | E4 | => 10
- S6 x5.6186556927297655 | E5 | => 7.498942093324558
- S6 x5.6186556927297655 | E6 | => 5.623413251903491
- S6 x5.6186556927297655 | E7 | => 4.216965034285822
- S6 x5.6186556927297655 | E8 | => 3.1622776601683795
- S7 x7.491540923639686 | E0 | => 56.23413251903491
- S7 x7.491540923639686 | E1 | => 42.169650342858226
- S7 x7.491540923639686 | E2 | => 31.622776601683793
- S7 x7.491540923639686 | E3 | => 23.71373705661655
- S7 x7.491540923639686 | E4 | => 17.78279410038923
- S7 x7.491540923639686 | E5 | => 13.33521432163324
- S7 x7.491540923639686 | E6 | => 10
- S7 x7.491540923639686 | E7 | => 7.498942093324558
- S7 x7.491540923639686 | E8 | => 5.623413251903491
- S8 x9.98872123151958 | E0 | => 100
- S8 x9.98872123151958 | E1 | => 74.98942093324558
- S8 x9.98872123151958 | E2 | => 56.23413251903491
- S8 x9.98872123151958 | E3 | => 42.169650342858226
- S8 x9.98872123151958 | E4 | => 31.622776601683793
- S8 x9.98872123151958 | E5 | => 23.71373705661655
- S8 x9.98872123151958 | E6 | => 17.78279410038923
- S8 x9.98872123151958 | E7 | => 13.33521432163324
- S8 x9.98872123151958 | E8 | => 10
- */
Advertisement
Add Comment
Please, Sign In to add comment