einsteinK

Mekanism upgrades numbers

Mar 25th, 2021 (edited)
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Based on https://github.com/mekanism/Mekanism/blob/55895f5c33ca96a2ccde01e3aab2ec2179fd0a7d/src/main/java/mekanism/common/util/MekanismUtils.java#L218
  2.  
  3. // This is for "regular" machines
  4. // Some gas machines speed multiplier is basically x1, x2, x4, ...
  5.  
  6. const UpgradeMultiplier = 10; // Config setting, defaults to 10
  7. for (let s = 0; s <= 8; s++) {
  8.     console.log();
  9.     for (let e = 0; e <= 8; e++) {
  10.         console.log(`S${s} x${(4/3)**s}\t| E${e} | => ${UpgradeMultiplier**(s/4-e/8)}`);
  11.     }
  12. }
  13.  
  14. /*
  15. Output, where the format is like:
  16. S[number of speed upgrades] [speed multiplier] | E[number of energy upgrades] | => [energyPerTick multiplier]
  17.  
  18. S0 x1   | E0 | => 1
  19. S0 x1   | E1 | => 0.7498942093324559
  20. S0 x1   | E2 | => 0.5623413251903491
  21. S0 x1   | E3 | => 0.4216965034285822
  22. S0 x1   | E4 | => 0.31622776601683794
  23. S0 x1   | E5 | => 0.23713737056616552
  24. S0 x1   | E6 | => 0.17782794100389226
  25. S0 x1   | E7 | => 0.1333521432163324
  26. S0 x1   | E8 | => 0.1
  27.  
  28. S1 x1.3333333333333333  | E0 | => 1.7782794100389228
  29. S1 x1.3333333333333333  | E1 | => 1.333521432163324
  30. S1 x1.3333333333333333  | E2 | => 1
  31. S1 x1.3333333333333333  | E3 | => 0.7498942093324559
  32. S1 x1.3333333333333333  | E4 | => 0.5623413251903491
  33. S1 x1.3333333333333333  | E5 | => 0.4216965034285822
  34. S1 x1.3333333333333333  | E6 | => 0.31622776601683794
  35. S1 x1.3333333333333333  | E7 | => 0.23713737056616552
  36. S1 x1.3333333333333333  | E8 | => 0.17782794100389226
  37.  
  38. S2 x1.7777777777777777  | E0 | => 3.1622776601683795
  39. S2 x1.7777777777777777  | E1 | => 2.371373705661655
  40. S2 x1.7777777777777777  | E2 | => 1.7782794100389228
  41. S2 x1.7777777777777777  | E3 | => 1.333521432163324
  42. S2 x1.7777777777777777  | E4 | => 1
  43. S2 x1.7777777777777777  | E5 | => 0.7498942093324559
  44. S2 x1.7777777777777777  | E6 | => 0.5623413251903491
  45. S2 x1.7777777777777777  | E7 | => 0.4216965034285822
  46. S2 x1.7777777777777777  | E8 | => 0.31622776601683794
  47.  
  48. S3 x2.37037037037037    | E0 | => 5.623413251903491
  49. S3 x2.37037037037037    | E1 | => 4.216965034285822
  50. S3 x2.37037037037037    | E2 | => 3.1622776601683795
  51. S3 x2.37037037037037    | E3 | => 2.371373705661655
  52. S3 x2.37037037037037    | E4 | => 1.7782794100389228
  53. S3 x2.37037037037037    | E5 | => 1.333521432163324
  54. S3 x2.37037037037037    | E6 | => 1
  55. S3 x2.37037037037037    | E7 | => 0.7498942093324559
  56. S3 x2.37037037037037    | E8 | => 0.5623413251903491
  57.  
  58. S4 x3.160493827160493   | E0 | => 10
  59. S4 x3.160493827160493   | E1 | => 7.498942093324558
  60. S4 x3.160493827160493   | E2 | => 5.623413251903491
  61. S4 x3.160493827160493   | E3 | => 4.216965034285822
  62. S4 x3.160493827160493   | E4 | => 3.1622776601683795
  63. S4 x3.160493827160493   | E5 | => 2.371373705661655
  64. S4 x3.160493827160493   | E6 | => 1.7782794100389228
  65. S4 x3.160493827160493   | E7 | => 1.333521432163324
  66. S4 x3.160493827160493   | E8 | => 1
  67.  
  68. S5 x4.213991769547324   | E0 | => 17.78279410038923
  69. S5 x4.213991769547324   | E1 | => 13.33521432163324
  70. S5 x4.213991769547324   | E2 | => 10
  71. S5 x4.213991769547324   | E3 | => 7.498942093324558
  72. S5 x4.213991769547324   | E4 | => 5.623413251903491
  73. S5 x4.213991769547324   | E5 | => 4.216965034285822
  74. S5 x4.213991769547324   | E6 | => 3.1622776601683795
  75. S5 x4.213991769547324   | E7 | => 2.371373705661655
  76. S5 x4.213991769547324   | E8 | => 1.7782794100389228
  77.  
  78. S6 x5.6186556927297655  | E0 | => 31.622776601683793
  79. S6 x5.6186556927297655  | E1 | => 23.71373705661655
  80. S6 x5.6186556927297655  | E2 | => 17.78279410038923
  81. S6 x5.6186556927297655  | E3 | => 13.33521432163324
  82. S6 x5.6186556927297655  | E4 | => 10
  83. S6 x5.6186556927297655  | E5 | => 7.498942093324558
  84. S6 x5.6186556927297655  | E6 | => 5.623413251903491
  85. S6 x5.6186556927297655  | E7 | => 4.216965034285822
  86. S6 x5.6186556927297655  | E8 | => 3.1622776601683795
  87.  
  88. S7 x7.491540923639686   | E0 | => 56.23413251903491
  89. S7 x7.491540923639686   | E1 | => 42.169650342858226
  90. S7 x7.491540923639686   | E2 | => 31.622776601683793
  91. S7 x7.491540923639686   | E3 | => 23.71373705661655
  92. S7 x7.491540923639686   | E4 | => 17.78279410038923
  93. S7 x7.491540923639686   | E5 | => 13.33521432163324
  94. S7 x7.491540923639686   | E6 | => 10
  95. S7 x7.491540923639686   | E7 | => 7.498942093324558
  96. S7 x7.491540923639686   | E8 | => 5.623413251903491
  97.  
  98. S8 x9.98872123151958    | E0 | => 100
  99. S8 x9.98872123151958    | E1 | => 74.98942093324558
  100. S8 x9.98872123151958    | E2 | => 56.23413251903491
  101. S8 x9.98872123151958    | E3 | => 42.169650342858226
  102. S8 x9.98872123151958    | E4 | => 31.622776601683793
  103. S8 x9.98872123151958    | E5 | => 23.71373705661655
  104. S8 x9.98872123151958    | E6 | => 17.78279410038923
  105. S8 x9.98872123151958    | E7 | => 13.33521432163324
  106. S8 x9.98872123151958    | E8 | => 10
  107. */
Advertisement
Add Comment
Please, Sign In to add comment