Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- money = Math.floor(saves[chosen][0]);
- depth = parseInt(saves[chosen][1]);
- dexp = parseInt(saves[chosen][2]);
- UID = saves[chosen][3];
- drill[0] = parseInt(saves[chosen][4]);
- drill[1] = parseInt(saves[chosen][5]);
- drill[2] = parseInt(saves[chosen][6]);
- drill[3] = parseInt(saves[chosen][7]);
- hireamt = parseInt(saves[chosen][8]);
- if(hireamt > 10){hireamt = 10;}
- oldversion = saves[chosen][9];
- minerals[1][2] = parseInt(saves[chosen][10]);
- minerals[2][2] = parseInt(saves[chosen][11]);
- minerals[3][2] = parseInt(saves[chosen][12]);
- minerals[4][2] = parseInt(saves[chosen][13]);
- minerals[5][2] = parseInt(saves[chosen][14]);
- minerals[6][2] = parseInt(saves[chosen][15]);
- minerals[7][2] = parseInt(saves[chosen][16]);
- minerals[8][2] = parseInt(saves[chosen][17]);
- minerals[9][2] = parseInt(saves[chosen][18]);
- minerals[10][2] = parseInt(saves[chosen][19]);
- minerals[11][2] = parseInt(saves[chosen][20]);
- minerals[12][2] = parseInt(saves[chosen][21]);
- minerals[13][2] = parseInt(saves[chosen][22]);
- minerals[14][2] = parseInt(saves[chosen][23]);
- minerals[15][2] = parseInt(saves[chosen][24]);
- minerals[16][2] = parseInt(saves[chosen][25]);
- minerals[17][2] = parseInt(saves[chosen][26]);
- minerals[18][2] = parseInt(saves[chosen][27]);
- minerals[19][2] = parseInt(saves[chosen][28]);
- minerals[20][2] = parseInt(saves[chosen][29]);
- minerals[21][2] = parseInt(saves[chosen][30]);
- minerals[21][3][0] = parseInt(saves[chosen][31]);
- minerals[21][3][1] = parseInt(saves[chosen][32]);
- minerals[21][3][2] = parseInt(saves[chosen][33]);
- minerals[22][2] = parseInt(saves[chosen][34]);
- minerals[22][3][0] = parseInt(saves[chosen][35]);
- minerals[22][3][1] = parseInt(saves[chosen][36]);
- minerals[22][3][2] = parseInt(saves[chosen][37]);
- minerals[23][2] = parseInt(saves[chosen][38]);
- minerals[23][3][0] = parseInt(saves[chosen][39]);
- minerals[23][3][1] = parseInt(saves[chosen][40]);
- minerals[23][3][2] = parseInt(saves[chosen][41]);
- inventory[0] = saves[chosen][42].split("!");
- inventory[1] = saves[chosen][43].split("!");
- inventory[2] = saves[chosen][44].split("!");
- inventory[3] = saves[chosen][45].split("!");
- inventory[4] = saves[chosen][46].split("!");
- Recipes[0][8] = parseInt(saves[chosen][47]);
- Recipes[0][10] = parseInt(saves[chosen][48]);
- Recipes[1][8] = parseInt(saves[chosen][49]);
- Recipes[1][10] = parseInt(saves[chosen][50]);
- Recipes[2][8] = parseInt(saves[chosen][51]);
- Recipes[2][10] = parseInt(saves[chosen][52]);
- Recipes[3][8] = parseInt(saves[chosen][53]);
- Recipes[3][10] = parseInt(saves[chosen][54]);
- Recipes[4][8] = parseInt(saves[chosen][55]);
- Recipes[4][10] = parseInt(saves[chosen][56]);
- Recipes[5][8] = parseInt(saves[chosen][57]);
- Recipes[5][10] = parseInt(saves[chosen][58]);
- Recipes[6][8] = parseInt(saves[chosen][59]);
- Recipes[6][10] = parseInt(saves[chosen][60]);
- Recipes[7][8] = parseInt(saves[chosen][61]);
- Recipes[7][10] = parseInt(saves[chosen][62]);
- Recipes[8][8] = parseInt(saves[chosen][63]);
- Recipes[8][10] = parseInt(saves[chosen][64]);
- Recipes[9][8] = parseInt(saves[chosen][65]);
- Recipes[9][10] = parseInt(saves[chosen][66]);
- Recipes[10][8] = parseInt(saves[chosen][67]);
- Recipes[10][10] = parseInt(saves[chosen][68]);
- Recipes[11][8] = parseInt(saves[chosen][69]);
- Recipes[11][10] = parseInt(saves[chosen][70]);
- Recipes[12][8] = parseInt(saves[chosen][71]);
- Recipes[12][10] = parseInt(saves[chosen][72]);
- Recipes[13][8] = parseInt(saves[chosen][73]);
- Recipes[13][10] = parseInt(saves[chosen][74]);
- Recipes[14][8] = parseInt(saves[chosen][75]);
- Recipes[14][10] = parseInt(saves[chosen][76]);
- Recipes[15][8] = parseInt(saves[chosen][77]);
- Recipes[15][10] = parseInt(saves[chosen][78]);
- Recipes[16][8] = parseInt(saves[chosen][79]);
- Recipes[16][10] = parseInt(saves[chosen][80]);
- playtime = parseInt(saves[chosen][81]);
- quest = saves[chosen][82].split("!");
- for(var Qfix=0; Qfix<quest.length; Qfix++){
- quest[Qfix] = parseInt(quest[Qfix]);
- if(isNaN(quest[Qfix]))
- {
- quest[Qfix] = 0;
- }
- }
- Recipes[17][8] = parseInt(saves[chosen][83]);
- Recipes[17][10] = parseInt(saves[chosen][84]);
- Recipes[18][8] = parseInt(saves[chosen][85]);
- Recipes[18][10] = parseInt(saves[chosen][86]);
- Recipes[19][8] = parseInt(saves[chosen][87]);
- Recipes[19][10] = parseInt(saves[chosen][88]);
- Recipes[20][8] = parseInt(saves[chosen][89]);
- Recipes[20][10] = parseInt(saves[chosen][90]);
- Recipes[21][8] = parseInt(saves[chosen][91]);
- Recipes[21][10] = parseInt(saves[chosen][92]);
- Recipes[22][8] = parseInt(saves[chosen][93]);
- Recipes[22][10] = parseInt(saves[chosen][94]);
- Recipes[23][8] = parseInt(saves[chosen][95]);
- Recipes[23][10] = parseInt(saves[chosen][96]);
- Recipes[24][8] = parseInt(saves[chosen][97]);
- Recipes[24][10] = parseInt(saves[chosen][98]);
- Recipes[25][8] = parseInt(saves[chosen][99]);
- Recipes[25][10] = parseInt(saves[chosen][100]);
- Recipes[26][8] = parseInt(saves[chosen][101]);
- Recipes[26][10] = parseInt(saves[chosen][102]);
- Recipes[27][8] = parseInt(saves[chosen][103]);
- Recipes[27][10] = parseInt(saves[chosen][104]);
- Recipes[28][8] = parseInt(saves[chosen][105]);
- Recipes[28][10] = parseInt(saves[chosen][106]);
- Recipes[29][8] = parseInt(saves[chosen][107]);
- Recipes[29][10] = parseInt(saves[chosen][108]);
- Recipes[30][8] = parseInt(saves[chosen][109]);
- Recipes[30][10] = parseInt(saves[chosen][110]);
- Recipes[31][8] = parseInt(saves[chosen][111]);
- Recipes[31][10] = parseInt(saves[chosen][112]);
- if(saves[chosen].length > 113){
- dlvl = parseInt(saves[chosen][113]);
- }
- if(saves[chosen].length > 114){
- spec = saves[chosen][114].split("!");
- for(var i=0; i<spec.length; i++){
- spec[i] = parseInt(spec[i]);
- }
- }
- if(saves[chosen].length > 115){
- tickets = parseInt(saves[chosen][115]);
- }
- if(saves[chosen].length > 117){
- Recipes[32][8] = parseInt(saves[chosen][116]);
- Recipes[32][10] = parseInt(saves[chosen][117]);
- Recipes[33][8] = parseInt(saves[chosen][118]);
- Recipes[33][10] = parseInt(saves[chosen][119]);
- Recipes[34][8] = parseInt(saves[chosen][120]);
- Recipes[34][10] = parseInt(saves[chosen][121]);
- Recipes[35][8] = parseInt(saves[chosen][122]);
- Recipes[35][10] = parseInt(saves[chosen][123]);
- Recipes[36][8] = parseInt(saves[chosen][124]);
- Recipes[36][10] = parseInt(saves[chosen][125]);
- Recipes[37][8] = parseInt(saves[chosen][126]);
- Recipes[37][10] = parseInt(saves[chosen][127]);
- Recipes[38][8] = parseInt(saves[chosen][128]);
- Recipes[38][10] = parseInt(saves[chosen][129]);
- Recipes[39][8] = parseInt(saves[chosen][130]);
- Recipes[39][10] = parseInt(saves[chosen][131]);
- camefrom = saves[chosen][132];
- }
- if(oldversion < 50 && depth > 502){
- dexp = 99899999999999;
- depth = 502;
- }
- if(oldversion < 57 && depth > 602){
- dexp = 99899999999999;
- depth = 602;
- }
- if(saves[chosen].length > 134){
- story = saves[chosen][134];
- oil = parseInt(saves[chosen][135]);
- monsterskilled = parseInt(saves[chosen][136]);
- battleInventory[0] = saves[chosen][137].split("!");
- battleInventory[1] = saves[chosen][138].split("!");
- battleInventory[2] = saves[chosen][139].split("!");
- battleInventory[3] = saves[chosen][140].split("!");
- battleInventory[4] = saves[chosen][141].split("!");
- battleInventory[5] = saves[chosen][142].split("!");
- battleInventory[6] = saves[chosen][143].split("!");
- battleInventory[7] = saves[chosen][144].split("!");
- battleInventory[8] = saves[chosen][145].split("!");
- battleInventory[9] = saves[chosen][146].split("!");
- battleInventory[10] = saves[chosen][147].split("!");
- battleInventory[11] = saves[chosen][148].split("!");
- battleInventory[12] = saves[chosen][149].split("!");
- battleInventory[13] = saves[chosen][150].split("!");
- battleInventory[14] = saves[chosen][151].split("!");
- for(var I=0; I<15; I++){
- if(battleInventory[I].length > 1){
- for(var I2=0; I2<battleInventory[I].length; I2++){
- battleInventory[I][I2] = parseInt(battleInventory[I][I2]);
- }
- } else {
- battleInventory[I] = [];
- }
- }
- }
- //this is done out of order so that dTime logic can be applied to the Inventory upgrades
- if(saves[chosen].length > 133){
- savetime = saves[chosen][133];
- deltaTimeLogic(timeSinceLastPlay());
- }
- if(saves[chosen].length > 152){
- oilRigLevel = parseInt(saves[chosen][152]);
- oilRigTime = parseInt(saves[chosen][153]);
- if(isNaN(oilRigLevel)){oilRigLevel = 0;}
- if(isNaN(oilRigTime)){oilRigTime = 0;}
- }
- if(saves[chosen].length > 155){
- console.log("is above 155", saves[chosen].length);
- //scientists
- hasUnlockedScientists = parseInt(saves[chosen][154]);
- maxRelicSlots = parseInt(saves[chosen][155]);
- var equippedRelicSave = saves[chosen][156].split("!");
- for(var i=0; i<equippedRelics.length; i++){
- equippedRelics[i] = parseInt(equippedRelicSave[i]);
- }
- for(var i=0; i<3; i++)
- {
- if(saves[chosen][(157+i)].split("!").length > 1)
- {
- activeScientists[i] = saves[chosen][(157+i)].split("!");
- for(var j=0; j<activeScientists[i].length; j++){
- if(activeScientists[i][j] !== null)
- {
- activeScientists[i][j] = parseInt(activeScientists[i][j]);
- }
- }
- }
- }
- for(var i=0; i<3; i++)
- {
- if(saves[chosen][(160+i)].split("!").length > 1)
- {
- activeExcavations[i] = saves[chosen][(160+i)].split("!");
- for(var j=0; j<activeExcavations[i].length; j++){
- if(activeExcavations[i][j] !== null)
- {
- activeExcavations[i][j] = parseInt(activeExcavations[i][j]);
- }
- }
- }
- }
- for(var i=0; i<6; i++)
- {
- if(saves[chosen][(163+i)].split("!").length > 1)
- {
- excavationChoices[Math.floor(i/2)][i%2] = saves[chosen][(163+i)].split("!");
- for(var j=0; j<excavationChoices[Math.floor(i/2)][i%2].length; j++){
- if(excavationChoices[Math.floor(i/2)][i%2][j] !== null)
- {
- excavationChoices[Math.floor(i/2)][i%2][j] = parseInt(excavationChoices[Math.floor(i/2)][i%2][j]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement