Advertisement
SpykeRel04D

Untitled

Apr 27th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. function computeOITEMS() {
  2. var OITEMS = [
  3. {
  4. name: "Fine-structure constant",
  5. icon: "0h39",
  6. text: "Doubles production",
  7. current: function (data,pn) {
  8. return "x"+pn(Math.pow(2,data.omegas[0]),"",true);
  9. },
  10. cost: function (current) {
  11. return Math.pow(10,current);
  12. },
  13. },{
  14. name: "Cosmological constant",
  15. icon: "0g8w",
  16. text: "+1% Natural Disasters",
  17. current: function (data) {
  18. var a = (3*60*(100/(100+data.omegas[1])));
  19. return "~"+stimer(a);
  20. },
  21. cost: function (current) {
  22. return fib(current+2);
  23. },
  24. },{
  25. name: "Add Quark mixing",
  26. icon: "0e8o",
  27. text: "-0.5% building cost",
  28. current: function (data) {
  29. return "-"+((1-(100+(data.omegas[2]/2))/(100+data.omegas[2]))*100).toFixed(2)+"%";
  30. },
  31. cost: function (current) {
  32. return fib(current+2);
  33. },
  34. },{
  35. name: "Add Neutrino mixing",
  36. icon: "09yp",
  37. text: "10% faster research",
  38. current: function (data) {
  39. return "+"+((-1+Math.pow(1.1,data.omegas[3]))*100).toFixed(2)+"%";
  40. },
  41. cost: function (current) {
  42. return fact(current+2);
  43. },
  44. },{
  45. name: "Add Boson",
  46. icon: "08sn",
  47. text: "Increases base click",
  48. current: function (data) {
  49. var val=0;
  50. for (var i=1; i<=data.omegas[4]; ++i) {
  51. var exp=Math.floor(i/10);
  52. val+=Math.pow(10,exp);
  53. }
  54. return "+"+val;
  55. },
  56. cost: function (current) {
  57. return fact(current+2);
  58. },
  59. },{
  60. name: "Strong coupling const",
  61. icon: "02je",
  62. text: "+0.25% prod. to click",
  63. current: function (data) {
  64. return "+"+((0.0025*data.omegas[5])*100).toFixed(2)+"%";
  65. },
  66. cost: function (current) {
  67. return Math.pow(current+1,current+1);
  68. },
  69. }
  70. ];
  71. return OITEMS;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement