Advertisement
Guest User

minerarray

a guest
Oct 5th, 2020
5,677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 9.55 KB | None | 0 0
  1. money = Math.floor(saves[chosen][0]);
  2. depth = parseInt(saves[chosen][1]);
  3. dexp = parseInt(saves[chosen][2]);
  4. UID = saves[chosen][3];
  5. drill[0] = parseInt(saves[chosen][4]);
  6. drill[1] = parseInt(saves[chosen][5]);
  7. drill[2] = parseInt(saves[chosen][6]);
  8. drill[3] = parseInt(saves[chosen][7]);
  9. hireamt = parseInt(saves[chosen][8]);
  10. if(hireamt > 10){hireamt = 10;}
  11. oldversion = saves[chosen][9];
  12. minerals[1][2] = parseInt(saves[chosen][10]);
  13. minerals[2][2] = parseInt(saves[chosen][11]);
  14. minerals[3][2] = parseInt(saves[chosen][12]);
  15. minerals[4][2] = parseInt(saves[chosen][13]);
  16. minerals[5][2] = parseInt(saves[chosen][14]);
  17. minerals[6][2] = parseInt(saves[chosen][15]);
  18. minerals[7][2] = parseInt(saves[chosen][16]);
  19. minerals[8][2] = parseInt(saves[chosen][17]);
  20. minerals[9][2] = parseInt(saves[chosen][18]);
  21. minerals[10][2] = parseInt(saves[chosen][19]);
  22. minerals[11][2] = parseInt(saves[chosen][20]);
  23. minerals[12][2] = parseInt(saves[chosen][21]);
  24. minerals[13][2] = parseInt(saves[chosen][22]);
  25. minerals[14][2] = parseInt(saves[chosen][23]);
  26. minerals[15][2] = parseInt(saves[chosen][24]);
  27. minerals[16][2] = parseInt(saves[chosen][25]);
  28. minerals[17][2] = parseInt(saves[chosen][26]);
  29. minerals[18][2] = parseInt(saves[chosen][27]);
  30. minerals[19][2] = parseInt(saves[chosen][28]);
  31. minerals[20][2] = parseInt(saves[chosen][29]);
  32. minerals[21][2] = parseInt(saves[chosen][30]);
  33. minerals[21][3][0] = parseInt(saves[chosen][31]);
  34. minerals[21][3][1] = parseInt(saves[chosen][32]);
  35. minerals[21][3][2] = parseInt(saves[chosen][33]);
  36. minerals[22][2] = parseInt(saves[chosen][34]);
  37. minerals[22][3][0] = parseInt(saves[chosen][35]);
  38. minerals[22][3][1] = parseInt(saves[chosen][36]);
  39. minerals[22][3][2] = parseInt(saves[chosen][37]);
  40. minerals[23][2] = parseInt(saves[chosen][38]);
  41. minerals[23][3][0] = parseInt(saves[chosen][39]);
  42. minerals[23][3][1] = parseInt(saves[chosen][40]);
  43. minerals[23][3][2] = parseInt(saves[chosen][41]);
  44. inventory[0] = saves[chosen][42].split("!");
  45. inventory[1] = saves[chosen][43].split("!");
  46. inventory[2] = saves[chosen][44].split("!");
  47. inventory[3] = saves[chosen][45].split("!");
  48. inventory[4] = saves[chosen][46].split("!");
  49. Recipes[0][8] = parseInt(saves[chosen][47]);
  50. Recipes[0][10] = parseInt(saves[chosen][48]);
  51. Recipes[1][8] = parseInt(saves[chosen][49]);
  52. Recipes[1][10] = parseInt(saves[chosen][50]);
  53. Recipes[2][8] = parseInt(saves[chosen][51]);
  54. Recipes[2][10] = parseInt(saves[chosen][52]);
  55. Recipes[3][8] = parseInt(saves[chosen][53]);
  56. Recipes[3][10] = parseInt(saves[chosen][54]);
  57. Recipes[4][8] = parseInt(saves[chosen][55]);
  58. Recipes[4][10] = parseInt(saves[chosen][56]);
  59. Recipes[5][8] = parseInt(saves[chosen][57]);
  60. Recipes[5][10] = parseInt(saves[chosen][58]);
  61. Recipes[6][8] = parseInt(saves[chosen][59]);
  62. Recipes[6][10] = parseInt(saves[chosen][60]);
  63. Recipes[7][8] = parseInt(saves[chosen][61]);
  64. Recipes[7][10] = parseInt(saves[chosen][62]);
  65. Recipes[8][8] = parseInt(saves[chosen][63]);
  66. Recipes[8][10] = parseInt(saves[chosen][64]);
  67. Recipes[9][8] = parseInt(saves[chosen][65]);
  68. Recipes[9][10] = parseInt(saves[chosen][66]);
  69. Recipes[10][8] = parseInt(saves[chosen][67]);
  70. Recipes[10][10] = parseInt(saves[chosen][68]);
  71. Recipes[11][8] = parseInt(saves[chosen][69]);
  72. Recipes[11][10] = parseInt(saves[chosen][70]);
  73. Recipes[12][8] = parseInt(saves[chosen][71]);
  74. Recipes[12][10] = parseInt(saves[chosen][72]);
  75. Recipes[13][8] = parseInt(saves[chosen][73]);
  76. Recipes[13][10] = parseInt(saves[chosen][74]);
  77. Recipes[14][8] = parseInt(saves[chosen][75]);
  78. Recipes[14][10] = parseInt(saves[chosen][76]);
  79. Recipes[15][8] = parseInt(saves[chosen][77]);
  80. Recipes[15][10] = parseInt(saves[chosen][78]);
  81. Recipes[16][8] = parseInt(saves[chosen][79]);
  82. Recipes[16][10] = parseInt(saves[chosen][80]);
  83. playtime = parseInt(saves[chosen][81]);
  84. quest = saves[chosen][82].split("!");
  85. for(var Qfix=0; Qfix<quest.length; Qfix++){
  86.     quest[Qfix] = parseInt(quest[Qfix]);
  87.     if(isNaN(quest[Qfix]))
  88.     {
  89.         quest[Qfix] = 0;
  90.     }
  91. }
  92. Recipes[17][8] = parseInt(saves[chosen][83]);
  93. Recipes[17][10] = parseInt(saves[chosen][84]);
  94. Recipes[18][8] = parseInt(saves[chosen][85]);
  95. Recipes[18][10] = parseInt(saves[chosen][86]);
  96. Recipes[19][8] = parseInt(saves[chosen][87]);
  97. Recipes[19][10] = parseInt(saves[chosen][88]);
  98. Recipes[20][8] = parseInt(saves[chosen][89]);
  99. Recipes[20][10] = parseInt(saves[chosen][90]);
  100. Recipes[21][8] = parseInt(saves[chosen][91]);
  101. Recipes[21][10] = parseInt(saves[chosen][92]);
  102. Recipes[22][8] = parseInt(saves[chosen][93]);
  103. Recipes[22][10] = parseInt(saves[chosen][94]);
  104. Recipes[23][8] = parseInt(saves[chosen][95]);
  105. Recipes[23][10] = parseInt(saves[chosen][96]);
  106. Recipes[24][8] = parseInt(saves[chosen][97]);
  107. Recipes[24][10] = parseInt(saves[chosen][98]);
  108. Recipes[25][8] = parseInt(saves[chosen][99]);
  109. Recipes[25][10] = parseInt(saves[chosen][100]);
  110. Recipes[26][8] = parseInt(saves[chosen][101]);
  111. Recipes[26][10] = parseInt(saves[chosen][102]);
  112. Recipes[27][8] = parseInt(saves[chosen][103]);
  113. Recipes[27][10] = parseInt(saves[chosen][104]);
  114. Recipes[28][8] = parseInt(saves[chosen][105]);
  115. Recipes[28][10] = parseInt(saves[chosen][106]);
  116. Recipes[29][8] = parseInt(saves[chosen][107]);
  117. Recipes[29][10] = parseInt(saves[chosen][108]);
  118. Recipes[30][8] = parseInt(saves[chosen][109]);
  119. Recipes[30][10] = parseInt(saves[chosen][110]);
  120. Recipes[31][8] = parseInt(saves[chosen][111]);
  121. Recipes[31][10] = parseInt(saves[chosen][112]);
  122.  
  123. if(saves[chosen].length > 113){
  124. dlvl = parseInt(saves[chosen][113]);
  125. }
  126.  
  127. if(saves[chosen].length > 114){
  128.     spec = saves[chosen][114].split("!");
  129.     for(var i=0; i<spec.length; i++){
  130.         spec[i] = parseInt(spec[i]);
  131.     }
  132. }
  133.  
  134. if(saves[chosen].length > 115){
  135. tickets = parseInt(saves[chosen][115]);
  136. }
  137.  
  138. if(saves[chosen].length > 117){
  139. Recipes[32][8] = parseInt(saves[chosen][116]);
  140. Recipes[32][10] = parseInt(saves[chosen][117]);
  141. Recipes[33][8] = parseInt(saves[chosen][118]);
  142. Recipes[33][10] = parseInt(saves[chosen][119]);
  143. Recipes[34][8] = parseInt(saves[chosen][120]);
  144. Recipes[34][10] = parseInt(saves[chosen][121]);
  145. Recipes[35][8] = parseInt(saves[chosen][122]);
  146. Recipes[35][10] = parseInt(saves[chosen][123]);
  147. Recipes[36][8] = parseInt(saves[chosen][124]);
  148. Recipes[36][10] = parseInt(saves[chosen][125]);
  149. Recipes[37][8] = parseInt(saves[chosen][126]);
  150. Recipes[37][10] = parseInt(saves[chosen][127]);
  151. Recipes[38][8] = parseInt(saves[chosen][128]);
  152. Recipes[38][10] = parseInt(saves[chosen][129]);
  153. Recipes[39][8] = parseInt(saves[chosen][130]);
  154. Recipes[39][10] = parseInt(saves[chosen][131]);
  155. camefrom = saves[chosen][132];
  156. }
  157.  
  158. if(oldversion < 50 && depth > 502){
  159.     dexp = 99899999999999;
  160.     depth = 502;
  161. }
  162.  
  163. if(oldversion < 57 && depth > 602){
  164.     dexp = 99899999999999;
  165.     depth = 602;
  166. }
  167.  
  168. if(saves[chosen].length > 134){
  169. story = saves[chosen][134];
  170. oil = parseInt(saves[chosen][135]);
  171. monsterskilled = parseInt(saves[chosen][136]);
  172. battleInventory[0] = saves[chosen][137].split("!");
  173. battleInventory[1] = saves[chosen][138].split("!");
  174. battleInventory[2] = saves[chosen][139].split("!");
  175. battleInventory[3] = saves[chosen][140].split("!");
  176. battleInventory[4] = saves[chosen][141].split("!");
  177. battleInventory[5] = saves[chosen][142].split("!");
  178. battleInventory[6] = saves[chosen][143].split("!");
  179. battleInventory[7] = saves[chosen][144].split("!");
  180. battleInventory[8] = saves[chosen][145].split("!");
  181. battleInventory[9] = saves[chosen][146].split("!");
  182. battleInventory[10] = saves[chosen][147].split("!");
  183. battleInventory[11] = saves[chosen][148].split("!");
  184. battleInventory[12] = saves[chosen][149].split("!");
  185. battleInventory[13] = saves[chosen][150].split("!");
  186. battleInventory[14] = saves[chosen][151].split("!");
  187.  
  188. for(var I=0; I<15; I++){
  189. if(battleInventory[I].length > 1){
  190. for(var I2=0; I2<battleInventory[I].length; I2++){
  191.     battleInventory[I][I2] = parseInt(battleInventory[I][I2]);
  192. }
  193. } else {
  194.     battleInventory[I] = [];
  195. }
  196. }
  197.  
  198. }
  199.  
  200. //this is done out of order so that dTime logic can be applied to the Inventory upgrades
  201. if(saves[chosen].length > 133){
  202. savetime = saves[chosen][133];
  203. deltaTimeLogic(timeSinceLastPlay());
  204. }
  205.  
  206. if(saves[chosen].length > 152){
  207. oilRigLevel = parseInt(saves[chosen][152]);
  208. oilRigTime = parseInt(saves[chosen][153]);
  209. if(isNaN(oilRigLevel)){oilRigLevel = 0;}
  210. if(isNaN(oilRigTime)){oilRigTime = 0;}
  211. }
  212.  
  213. if(saves[chosen].length > 155){
  214. console.log("is above 155", saves[chosen].length);
  215. //scientists
  216. hasUnlockedScientists = parseInt(saves[chosen][154]);
  217. maxRelicSlots = parseInt(saves[chosen][155]);
  218.  
  219. var equippedRelicSave = saves[chosen][156].split("!");
  220. for(var i=0; i<equippedRelics.length; i++){
  221.     equippedRelics[i] = parseInt(equippedRelicSave[i]);
  222. }
  223.  
  224. for(var i=0; i<3; i++)
  225. {
  226.     if(saves[chosen][(157+i)].split("!").length > 1)
  227.     {
  228.         activeScientists[i] = saves[chosen][(157+i)].split("!");
  229.         for(var j=0; j<activeScientists[i].length; j++){
  230.             if(activeScientists[i][j] !== null)
  231.             {
  232.                 activeScientists[i][j] = parseInt(activeScientists[i][j]);
  233.             }
  234.         }
  235.     }
  236. }
  237.  
  238. for(var i=0; i<3; i++)
  239. {
  240.     if(saves[chosen][(160+i)].split("!").length > 1)
  241.     {
  242.         activeExcavations[i] = saves[chosen][(160+i)].split("!");
  243.         for(var j=0; j<activeExcavations[i].length; j++){
  244.             if(activeExcavations[i][j] !== null)
  245.             {
  246.                 activeExcavations[i][j] = parseInt(activeExcavations[i][j]);
  247.             }
  248.         }
  249.     }
  250. }
  251.  
  252. for(var i=0; i<6; i++)
  253. {
  254.     if(saves[chosen][(163+i)].split("!").length > 1)
  255.     {
  256.         excavationChoices[Math.floor(i/2)][i%2] = saves[chosen][(163+i)].split("!");
  257.         for(var j=0; j<excavationChoices[Math.floor(i/2)][i%2].length; j++){
  258.             if(excavationChoices[Math.floor(i/2)][i%2][j] !== null)
  259.             {
  260.                 excavationChoices[Math.floor(i/2)][i%2][j] = parseInt(excavationChoices[Math.floor(i/2)][i%2][j]);
  261.             }
  262.         }
  263.     }
  264. }
  265.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement