Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- allAchievements.a11 = "Instant Multiplier"
- allAchievements.a12 = "Better Replicanti Multiplier"
- allAchievements.a13 = "Eighth Generation"
- allAchievementNums["Instant Multiplier"] = "a11"
- allAchievementNums["Better Replicanti Multiplier"] = "a12"
- allAchievementNums["Eighth Generation"] = "a13"
- function gameLoop(diff) {
- var thisUpdate = new Date().getTime();
- if (thisUpdate - player.lastUpdate >= 21600000) giveAchievement("Don't you dare to sleep")
- if (typeof diff === 'undefined') var diff = Math.min(thisUpdate - player.lastUpdate, 21600000);
- diff = diff / 100;
- if (diff < 0) diff = 1;
- if (player.currentEternityChall === "eterc12") diff = diff / 1000;
- if (player.thisInfinityTime < -10) player.thisInfinityTime = Infinity
- if (player.bestInfinityTime < -10) player.bestInfinityTime = Infinity
- if (diff > player.autoTime && !player.break) player.infinityPoints = player.infinityPoints.plus(player.autoIP.times(diff/player.autoTime))
- /*if (player.currentChallenge == "postc6" && player.matter.gte(1)) player.matter = player.matter.plus(diff/10)
- else */
- player.matter = player.matter.times(Decimal.pow((1.03 + player.resets/200 + player.galaxies/100), diff));
- if (player.matter.gt(player.money) && (player.currentChallenge == "challenge12" || player.currentChallenge == "postc1")) {
- if (player.resets > 0) player.resets--;
- softReset(0);
- }
- if (player.currentChallenge == "postc8") postc8Mult = postc8Mult.times(Math.pow(0.000000046416, diff))
- if (player.currentChallenge == "challenge3" || player.matter.gte(1)) player.chall3Pow = player.chall3Pow.times(Decimal.pow(1.00038, diff));
- player.chall2Pow = Math.min(player.chall2Pow + diff/1800, 1);
- if (player.currentChallenge == "postc2") {
- postC2Count++;
- if (postC2Count >= 8 || diff > 80) {
- sacrifice();
- postC2Count = 0;
- }
- }
- if (player.infinityUpgrades.includes("passiveGen")) player.partInfinityPoint += diff / player.bestInfinityTime;
- if (player.partInfinityPoint >= 100) {
- player.infinityPoints = player.infinityPoints.plus(player.infMult.times(kongIPMult * (player.partInfinityPoint/10)));
- player.partInfinityPoint = 0;
- }
- if (player.partInfinityPoint >= 10) {
- player.partInfinityPoint -= 10;
- player.infinityPoints = player.infinityPoints.plus(player.infMult.times(kongIPMult));
- }
- if (player.infinityUpgrades.includes("infinitiedGeneration") && player.currentEternityChall !== "eterc4") player.partInfinitied += diff / player.bestInfinityTime;
- if (player.partInfinitied >= 50) {
- player.infinitied += Math.floor(player.partInfinitied/5)
- player.partInfinitied = 0;
- }
- if (player.partInfinitied >= 5) {
- player.partInfinitied -= 5;
- player.infinitied ++;
- }
- player.infinityPoints = player.infinityPoints.plus(bestRunIppm.times(player.offlineProd/100).times(diff/600))
- if (player.money.lte(Number.MAX_VALUE) || (player.break && player.currentChallenge == "") || (player.currentChallenge != "" && player.money.lte(player.challengeTarget))) {
- if (player.currentChallenge != "challenge7" && player.currentEternityChall != "eterc3") {
- for (let tier = 8; tier >= 1; --tier) {
- var name = TIER_NAMES[tier];
- player[name + 'Amount'] = player[name + 'Amount'].plus(getDimensionProductionPerSecond(tier + 1).times(diff / 100));
- }
- } else if (player.currentEternityChall != "eterc3") {
- for (let tier = 6; tier >= 1; --tier) {
- var name = TIER_NAMES[tier];
- player[name + 'Amount'] = player[name + 'Amount'].plus(getDimensionProductionPerSecond(tier + 2).times(diff / 100));
- }
- } else {
- for (let tier = 3; tier >= 1; --tier) {
- var name = TIER_NAMES[tier];
- player[name + 'Amount'] = player[name + 'Amount'].plus(getDimensionProductionPerSecond(tier + 1).times(diff / 100));
- }
- }
- if (player.currentChallenge == "challenge3" || player.currentChallenge == "postc1") {
- player.money = player.money.plus(getDimensionProductionPerSecond(1).times(diff/10).times(player.chall3Pow));
- player.totalmoney = player.totalmoney.plus(getDimensionProductionPerSecond(1).times(diff/10).times(player.chall3Pow));
- } else {
- player.money = player.money.plus(getDimensionProductionPerSecond(1).times(diff/10));
- player.totalmoney = player.totalmoney.plus(getDimensionProductionPerSecond(1).times(diff/10));
- }
- if (player.currentChallenge == "challenge7") {
- player.money = player.money.plus(getDimensionProductionPerSecond(2).times(diff/10));
- player.totalmoney = player.totalmoney.plus(getDimensionProductionPerSecond(2).times(diff/10))
- }
- }
- document.getElementById("dimTabButtons").style.display = "none"
- if (player.currentEternityChall === "eterc12") player.totalTimePlayed += diff*1000
- else player.totalTimePlayed += diff
- player.thisInfinityTime += diff
- player.thisEternity += diff
- if (player.eternities > 0) document.getElementById("tdtabbtn").style.display = "inline-block"
- for (let tier=1;tier<9;tier++) {
- if (tier != 8 && (player.infDimensionsUnlocked[tier-1] || ECTimesCompleted("eterc7") > 0)) player["infinityDimension"+tier].amount = player["infinityDimension"+tier].amount.plus(DimensionProduction(tier+1).times(diff/100))
- if (player.infDimensionsUnlocked[tier-1]) {
- document.getElementById("infRow"+tier).style.display = "inline-block"
- document.getElementById("dimTabButtons").style.display = "inline-block"
- var idtabshown = true;
- } else {
- document.getElementById("infRow"+tier).style.display = "none"
- document.getElementById("idtabbtn").style.display = "none"
- }
- if (idtabshown === true || player.eternities >= 1) {
- document.getElementById("idtabbtn").style.display = "inline-block"
- }
- if (tier <8) player["timeDimension"+tier].amount = player["timeDimension"+tier].amount.plus(getTimeDimensionProduction(tier+1).times(diff/100))
- }
- if (player.infinitied > 0 && player.eternities < 1) {
- document.getElementById("dimTabButtons").style.display = "inline-block"
- document.getElementById("dtabbtn").style.display = "inline-block"
- document.getElementById("prodtabbtn").style.display = "inline-block"
- }
- if (player.eternities > 0) document.getElementById("dimTabButtons").style.display = "inline-block"
- if (player.currentEternityChall !== "eterc7") player.infinityPower = player.infinityPower.plus(DimensionProduction(1).times(diff/10))
- else if (player.currentChallenge !== "challenge4" && player.currentChallenge !== "postc1") player.seventhAmount = player.seventhAmount.plus(DimensionProduction(1).times(diff/10))
- if (player.currentEternityChall == "eterc7") player.infinityDimension8.amount = player.infinityDimension8.amount.plus(getTimeDimensionProduction(1).times(diff/10))
- else player.timeShards = player.timeShards.plus(getTimeDimensionProduction(1).times(diff/10))
- if (getTimeDimensionProduction(1).gt(0) && ECTimesCompleted("eterc7") > 0) player.infinityDimension8.amount = player.infinityDimension8.amount.plus(getTimeDimensionProduction(1).pow(ECTimesCompleted("eterc7")*0.2).minus(1).times(diff/10))
- let gain;
- if (player.timeShards.gt(0)) {
- if (player.timestudy.studies.includes(171)) gain = Math.ceil(new Decimal(player.timeShards).dividedBy(player.tickThreshold).log10() / Math.log10(1.25))
- else gain = Math.ceil(new Decimal(player.timeShards).dividedBy(player.tickThreshold).log10() / Math.log10(1.33))
- player.totalTickGained += gain
- player.tickspeed = player.tickspeed.times(Decimal.pow(getTickSpeedMultiplier(), gain))
- if (player.timestudy.studies.includes(171)) player.tickThreshold = new Decimal(1).times(1.25).pow(player.totalTickGained)
- else player.tickThreshold = new Decimal(1).times(1.33).pow(player.totalTickGained)
- document.getElementById("totaltickgained").textContent = "You've gained "+player.totalTickGained.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")+" tickspeed upgrades."
- updateTickSpeed();
- }
- if (player.eternities == 0) {
- document.getElementById("eternityPoints2").style.display = "none"
- document.getElementById("eternitystorebtn").style.display = "none"
- }
- else {
- document.getElementById("eternityPoints2").style.display = "inline-block"
- }
- if (player.money.gte(Number.MAX_VALUE) && (!player.break || (player.currentChallenge != "" && player.money.gte(player.challengeTarget)))) {
- document.getElementById("bigcrunch").style.display = 'inline-block';
- if ((player.currentChallenge == "" || player.options.retryChallenge) && (player.bestInfinityTime <= 600 || player.break)) {}
- else showTab('emptiness');
- } else document.getElementById("bigcrunch").style.display = 'none';
- if (player.break && player.money.gte(Number.MAX_VALUE) && player.currentChallenge == "") {
- document.getElementById("postInfinityButton").style.display = "inline-block"
- } else {
- document.getElementById("postInfinityButton").style.display = "none"
- }
- if (player.break) document.getElementById("iplimit").style.display = "inline"
- else document.getElementById("iplimit").style.display = "none"
- var currentIPmin = gainedInfinityPoints().dividedBy(player.thisInfinityTime/600)
- if (currentIPmin.gt(IPminpeak)) IPminpeak = currentIPmin
- if (IPminpeak.lte("1e100000")) document.getElementById("postInfinityButton").innerHTML = "<b>Big Crunch for "+shortenDimensions(gainedInfinityPoints())+" Infinity Points.</b><br>"+shortenDimensions(currentIPmin) + " IP/min"+"<br>Peaked at "+shortenDimensions(IPminpeak)+" IP/min"
- else document.getElementById("postInfinityButton").innerHTML = "<b>Big Crunch for "+shortenDimensions(gainedInfinityPoints())+" Infinity Points.</b>"
- if (nextAt[player.postChallUnlocked] === undefined) document.getElementById("nextchall").textContent = " "
- else if (!player.achievements.includes("r133")) {
- document.getElementById("nextchall").textContent = "Next challenge unlocks at "+ shortenCosts(nextAt[player.postChallUnlocked]) + " antimatter."
- while (player.money.gte(nextAt[player.postChallUnlocked]) && player.challenges.includes("postc8") === false && player.postChallUnlocked != 8) {
- if (player.postChallUnlocked != 8) player.postChallUnlocked += 1
- if (player.eternities > 6) player.challenges.push("postc"+player.postChallUnlocked)
- updateChallenges()
- }
- }
- let interval = player.replicanti.interval
- if (player.timestudy.studies.includes(62)) interval = interval/3
- if (player.timestudy.studies.includes(133) || player.replicanti.amount.gt(Number.MAX_VALUE)) interval *= 10
- if (player.timestudy.studies.includes(213)) interval /= 20
- if (player.replicanti.amount.lt(Number.MAX_VALUE) && player.achievements.includes("r134")) interval /= 2
- if (player.replicanti.amount.gt(Number.MAX_VALUE)) interval = Math.max(interval * Math.pow(1.2, (player.replicanti.amount.log10() - 308)/308), interval)
- var est = Math.log(player.replicanti.chance+1) * 1000 / interval
- var current = player.replicanti.amount.ln()
- if (player.replicanti.unl && (diff > 5 || interval < 50 || player.timestudy.studies.includes(192))) {
- var gained = Decimal.pow(Math.E, current +(diff*est/10))
- if (player.timestudy.studies.includes(192)) gained = Decimal.pow(Math.E, current +Math.log((diff*est/10) * (Math.log10(1.2)/308)+1) / (Math.log10(1.2)/308))
- player.replicanti.amount = Decimal.min(Number.MAX_VALUE, gained)
- if (player.timestudy.studies.includes(192)) player.replicanti.amount = gained
- replicantiTicks = 0
- } else {
- if (interval <= replicantiTicks && player.replicanti.unl) {
- if (player.replicanti.amount.lte(100)) {
- var temp = player.replicanti.amount
- for (var i=0; temp.gt(i); i++) {
- if (player.replicanti.chance > Math.random()) player.replicanti.amount = player.replicanti.amount.plus(1)
- }
- } else {
- var temp = Decimal.round(player.replicanti.amount.dividedBy(100))
- if (Math.round(player.replicanti.chance) !== 1) {
- let counter = 0
- for (var i=0; i<100; i++) {
- if (player.replicanti.chance > Math.random()) {
- counter++;
- }
- }
- player.replicanti.amount = Decimal.min(Number.MAX_VALUE, temp.times(counter).plus(player.replicanti.amount))
- if (player.timestudy.studies.includes(192)) player.replicanti.amount = temp.times(counter).plus(player.replicanti.amount)
- counter = 0
- } else {
- if (player.timestudy.studies.includes(192)) player.replicanti.amount = player.replicanti.amount.times(2)
- else player.replicanti.amount = Decimal.min(Number.MAX_VALUE, player.replicanti.amount.times(2))
- }
- }
- replicantiTicks -= interval
- }
- }
- if (player.replicanti.amount.gt(0)) replicantiTicks += player.options.updateRate
- if (current == Decimal.ln(Number.MAX_VALUE) && player.thisInfinityTime < 600*30) giveAchievement("Is this safe?");
- if (player.replicanti.galaxies >= 10 && player.thisInfinityTime < 150) giveAchievement("The swarm");
- if (player.money.gte(new Decimal(1e5))) giveAchievement("Instant Multiplier");
- if (player.replicanti.amount.gte(new Decimal("1e999"))) giveAchievement("Better Replicanti Multiplier");
- if (player.eightAmount.gte(1000)) giveAchievement("Eighth Generation")
- if (player.replicanti.galaxybuyer && player.replicanti.amount.gte(Number.MAX_VALUE) && !player.timestudy.studies.includes(131)) {
- document.getElementById("replicantireset").click()
- }
- if (player.timestudy.studies.includes(22) ? player.replicanti.interval !== 1 : (player.replicanti.interval !== 50)) document.getElementById("replicantiinterval").innerHTML = "Interval: "+(interval).toFixed(3)+"ms<br>-> "+Math.max(interval*0.9).toFixed(3)+" Costs: "+shortenCosts(player.replicanti.intervalCost)+" IP"
- else document.getElementById("replicantiinterval").textContent = "Interval: "+(interval).toFixed(3)+"ms"
- if (player.infMultBuyer) {
- var dif = player.infinityPoints.e - player.infMultCost.e +1
- if (dif > 0) {
- player.infMult = player.infMult.times(Decimal.pow(2, dif))
- player.infMultCost = player.infMultCost.times(Decimal.pow(10, dif))
- document.getElementById("infiMult").innerHTML = "Multiply infinity points from all sources by 2 <br>currently: "+shorten(player.infMult.times(kongIPMult)) +"x<br>Cost: "+shortenCosts(player.infMultCost)+" IP"
- player.infinityPoints = player.infinityPoints.minus(player.infMultCost.dividedBy(10))
- if (player.autobuyers[11].priority !== undefined && player.autobuyers[11].priority !== null && player.autoCrunchMode == "amount") player.autobuyers[11].priority = player.autobuyers[11].priority.times(Decimal.pow(2, dif));
- if (player.autoCrunchMode == "amount") document.getElementById("priority12").value = player.autobuyers[11].priority
- }
- }
- var estimate = Math.max((Math.log(Number.MAX_VALUE) - current) / est, 0)
- document.getElementById("replicantiapprox").textContent ="Approximately "+ timeDisplay(estimate*10) + " Until Infinite Replicanti"
- document.getElementById("replicantiamount").textContent = shortenDimensions(player.replicanti.amount)
- var replmult = Decimal.pow(Decimal.log2(Decimal.max(player.replicanti.amount, 1)), 2)
- if (player.timestudy.studies.includes(21)) replmult = replmult.plus(Decimal.pow(player.replicanti.amount, 0.032))
- if (player.timestudy.studies.includes(102))replmult = replmult.times(Decimal.pow(5, player.replicanti.galaxies, 150))
- document.getElementById("replicantimult").textContent = shorten(replmult.max(1))
- var currentEPmin = gainedEternityPoints().dividedBy(player.thisEternity/600)
- if (currentEPmin.gt(EPminpeak) && player.infinityPoints.gte(Number.MAX_VALUE)) EPminpeak = currentEPmin
- document.getElementById("eternitybtn").innerHTML = (player.eternities == 0) ? "Other times await.. I need to become Eternal" : "<b>I need to become Eternal.</b><br>"+"Gain <b>"+shortenDimensions(gainedEternityPoints())+"</b> Eternity points.<br>"+shortenDimensions(currentEPmin)+ " EP/min<br>Peaked at "+shortenDimensions(EPminpeak)+" EP/min"
- if (gainedEternityPoints().gte(1e6)) document.getElementById("eternitybtn").innerHTML = "Gain <b>"+shortenDimensions(gainedEternityPoints())+"</b> Eternity points.<br>"+shortenDimensions(currentEPmin)+ " EP/min<br>Peaked at "+shortenDimensions(EPminpeak)+" EP/min"
- if (player.dilation.active) document.getElementById("eternitybtn").innerHTML = "Gain <b>"+shortenDimensions(gainedEternityPoints())+"</b> Eternity points.<br>"+"+"+shortenMoney(Math.round(Math.max(Math.pow(Decimal.log10(player.money) / 400, 1.5) * (Math.pow(3, player.dilation.rebuyables[3])) - player.dilation.totalTachyonParticles, 0) * 10)/10) +" Tachyon particles."
- if (player.currentEternityChall !== "") document.getElementById("eternitybtn").textContent = "Other challenges await.. I need to become Eternal"
- updateMoney();
- updateCoinPerSec();
- updateDimensions()
- updateInfCosts()
- updateInfinityDimensions();
- updateInfPower();
- updateTimeDimensions()
- updateTimeShards()
- updateDilation()
- if (getDimensionProductionPerSecond(1).gt(player.money) && !player.achievements.includes("r44")) {
- Marathon+=player.options.updateRate/1000;
- if (Marathon >= 30) giveAchievement("Over in 30 seconds");
- } else {
- Marathon = 0;
- }
- if (DimensionProduction(1).gt(player.infinityPower) && player.currentEternityChall != "eterc7" && !player.achievements.includes("r113")) {
- Marathon2+=player.options.updateRate/1000;
- if (Marathon2 >= 60) giveAchievement("Long lasting relationship");
- } else {
- Marathon2 = 0;
- }
- if (player.eternities >= 1 && (player.options.notation == "Standard" || player.options.notation == "Emojis" || player.options.notation == "Brackets")) {
- painTimer += player.options.updateRate/1000;
- if (painTimer >= 600) giveAchievement("Do you enjoy pain?");
- }
- if(player.money.gt(Math.pow(10,63))) giveAchievement("Supersanic");
- for (let tier = 1; tier <= 8; ++tier) {
- var name = TIER_NAMES[tier];
- if (player.currentChallenge != "challenge10" && player.currentChallenge != "postc1") {
- document.getElementById(name).className = canAfford(player[name + 'Cost']) ? 'storebtn' : 'unavailablebtn';
- document.getElementById(name + 'Max').className = canAfford(player[name + 'Cost'].times(10 - dimBought(tier))) ? 'storebtn' : 'unavailablebtn';
- } else {
- if (tier >= 3) {
- document.getElementById(name).className = player[TIER_NAMES[tier-2] + 'Amount'].gte(player[name + 'Cost']) ? 'storebtn' : 'unavailablebtn';
- document.getElementById(name + 'Max').className = player[TIER_NAMES[tier-2] + 'Amount'].gte(player[name + 'Cost'].times(10 - dimBought(tier))) ? 'storebtn' : 'unavailablebtn';
- } else {
- document.getElementById(name).className = canAfford(player[name + 'Cost']) ? 'storebtn' : 'unavailablebtn';
- document.getElementById(name + 'Max').className = canAfford(player[name + 'Cost'].times(10 - dimBought(tier))) ? 'storebtn' : 'unavailablebtn';
- }
- }
- }
- if (player.firstAmount.lt(1)) document.getElementById("first").className = 'storebtn';
- for (var tier = 1; tier < 9; tier++) {
- if (player.infinityPoints.gte(player["infinityDimension"+tier].cost)) document.getElementById("infMax"+tier).className = "storebtn"
- else document.getElementById("infMax"+tier).className = "unavailablebtn"
- }
- for (var tier = 1; tier < 9; tier++) {
- if (player.eternityPoints.gte(player["timeDimension"+tier].cost)) document.getElementById("timeMax"+tier).className = "storebtn"
- else document.getElementById("timeMax"+tier).className = "unavailablebtn"
- }
- if (player.dilation.studies.includes(1)) player.dilation.dilatedTime = player.dilation.dilatedTime.plus(player.dilation.tachyonParticles*Math.pow(2, player.dilation.rebuyables[1])*diff/10)
- if (player.dilation.nextThreshold.lte(player.dilation.dilatedTime)) {
- let thresholdMult = 1.35 + 3.65 * Math.pow(0.8, player.dilation.rebuyables[2])
- // for (var i = 0; i < player.dilation.rebuyables[2]; i++) {
- // thresholdMult *= Math.min( 1 - (Math.pow(0.8, i) / 10), 0.999)
- // }
- player.dilation.nextThreshold = player.dilation.nextThreshold.times(thresholdMult)
- player.dilation.freeGalaxies += 1
- if (player.dilation.upgrades.includes(4)) player.dilation.freeGalaxies += 1
- }
- if (canAfford(player.tickSpeedCost)) {
- document.getElementById("tickSpeed").className = 'storebtn';
- document.getElementById("tickSpeedMax").className = 'storebtn';
- } else {
- document.getElementById("tickSpeed").className = 'unavailablebtn';
- document.getElementById("tickSpeedMax").className = 'unavailablebtn';
- }
- if (player.infinityPoints.gt(0) || player.eternities !== 0) {
- document.getElementById("infinitybtn").style.display = "block";
- document.getElementById("infi11").className = "infinistorebtn1"
- document.getElementById("infi21").className = "infinistorebtn2"
- if (player.infinityUpgrades.includes("timeMult")) document.getElementById("infi12").className = "infinistorebtn1"
- else document.getElementById("infi12").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("dimMult")) document.getElementById("infi22").className = "infinistorebtn2"
- else document.getElementById("infi22").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("18Mult")) document.getElementById("infi13").className = "infinistorebtn1"
- else document.getElementById("infi13").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("27Mult")) document.getElementById("infi23").className = "infinistorebtn2"
- else document.getElementById("infi23").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("36Mult")) document.getElementById("infi14").className = "infinistorebtn1"
- else document.getElementById("infi14").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("45Mult") && player.infinityPoints.gte(2)) document.getElementById("infi24").className = "infinistorebtn2"
- else document.getElementById("infi24").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(3)) document.getElementById("infi31").className = "infinistorebtn3"
- else document.getElementById("infi31").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("timeMult2") && player.infinityPoints.gte(5)) document.getElementById("infi32").className = "infinistorebtn3"
- else document.getElementById("infi32").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("unspentBonus") && player.infinityPoints.gte(7)) document.getElementById("infi33").className = "infinistorebtn3"
- else document.getElementById("infi33").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("resetMult") && player.infinityPoints.gte(10)) document.getElementById("infi34").className = "infinistorebtn3"
- else document.getElementById("infi34").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(20)) document.getElementById("infi41").className = "infinistorebtn4"
- else document.getElementById("infi41").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("skipReset1") && player.infinityPoints.gte(40)) document.getElementById("infi42").className = "infinistorebtn4"
- else document.getElementById("infi42").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("skipReset2") && player.infinityPoints.gte(80)) document.getElementById("infi43").className = "infinistorebtn4"
- else document.getElementById("infi43").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("skipReset3") && player.infinityPoints.gte(500)) document.getElementById("infi44").className = "infinistorebtn4"
- else document.getElementById("infi44").className = "infinistorebtnlocked"
- if (player.infinityUpgrades.includes("skipResetGalaxy") && player.infinityUpgrades.includes("passiveGen") && player.infinityUpgrades.includes("galaxyBoost") && player.infinityUpgrades.includes("resetBoost") && player.infinityPoints.gte(player.infMultCost)) {
- document.getElementById("infiMult").className = "infinimultbtn"
- } else document.getElementById("infiMult").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(1e4)) document.getElementById("postinfi11").className = "infinistorebtn1"
- else document.getElementById("postinfi11").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(5e4)) document.getElementById("postinfi21").className = "infinistorebtn1"
- else document.getElementById("postinfi21").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(player.tickSpeedMultDecreaseCost)) document.getElementById("postinfi31").className = "infinimultbtn"
- else document.getElementById("postinfi31").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(5e11)) document.getElementById("postinfi41").className = "infinistorebtn1"
- else document.getElementById("postinfi41").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(1e5)) document.getElementById("postinfi12").className = "infinistorebtn1"
- else document.getElementById("postinfi12").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(1e6)) document.getElementById("postinfi22").className = "infinistorebtn1"
- else document.getElementById("postinfi22").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(1e7)) document.getElementById("postinfi32").className = "infinistorebtn1"
- else document.getElementById("postinfi32").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(player.dimensionMultDecreaseCost)) document.getElementById("postinfi42").className = "infinimultbtn"
- else document.getElementById("postinfi42").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(20e6)) document.getElementById("postinfi13").className = "infinistorebtn1"
- else document.getElementById("postinfi13").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(5e9)) document.getElementById("postinfi23").className = "infinistorebtn1"
- else document.getElementById("postinfi23").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(1e15)) document.getElementById("postinfi33").className = "infinistorebtn1"
- else document.getElementById("postinfi33").className = "infinistorebtnlocked"
- if (player.infinityPoints.gte(player.offlineProdCost)) document.getElementById("offlineProd").className = "infinimultbtn"
- else document.getElementById("offlineProd").className = "infinistorebtnlocked"
- }
- if (player.infinityPoints.equals(0)){
- document.getElementById("infi11").className = "infinistorebtnlocked"
- document.getElementById("infi12").className = "infinistorebtnlocked"
- document.getElementById("infi13").className = "infinistorebtnlocked"
- document.getElementById("infi14").className = "infinistorebtnlocked"
- document.getElementById("infi21").className = "infinistorebtnlocked"
- document.getElementById("infi22").className = "infinistorebtnlocked"
- document.getElementById("infi23").className = "infinistorebtnlocked"
- document.getElementById("infi24").className = "infinistorebtnlocked"
- document.getElementById("infi31").className = "infinistorebtnlocked"
- document.getElementById("infi32").className = "infinistorebtnlocked"
- document.getElementById("infi33").className = "infinistorebtnlocked"
- document.getElementById("infi34").className = "infinistorebtnlocked"
- document.getElementById("infi41").className = "infinistorebtnlocked"
- document.getElementById("infi42").className = "infinistorebtnlocked"
- document.getElementById("infi43").className = "infinistorebtnlocked"
- document.getElementById("infi44").className = "infinistorebtnlocked"
- document.getElementById("infiMult").className = "infinistorebtnlocked"
- }
- if (player.autobuyers[11]%1 === 0 || player.autobuyers[11].interval>100) document.getElementById("break").className = "infinistorebtnlocked"
- else document.getElementById("break").className = "infinistorebtn2"
- if (player.resets > 4) {
- document.getElementById("confirmation").style.display = "inline-block";
- document.getElementById("sacrifice").style.display = "inline-block";
- } else {
- document.getElementById("confirmation").style.display = "none";
- document.getElementById("sacrifice").style.display = "none";
- }
- if (player.infinitied > 0) document.getElementById("sacrifice").style.display = "inline-block";
- if (player.eightAmount > 0 && player.resets > 4 && player.currentEternityChall !== "eterc3") document.getElementById("sacrifice").className = "storebtn"
- else document.getElementById("sacrifice").className = "unavailablebtn"
- if (player.autobuyers[11]%1 !== 0 && player.autobuyers[11].interval == 100) {
- document.getElementById("postinftable").style.display = "inline-block"
- } else {
- document.getElementById("postinftable").style.display = "none"
- }
- if (player.autobuyers[11].interval == 100) document.getElementById("abletobreak").style.display = "none"
- document.getElementById("infinitybtn").style.display = "none";
- document.getElementById("challengesbtn").style.display = "none";
- if (player.money.gte(Number.MAX_VALUE) && (((player.currentChallenge != "" && player.money.gte(player.challengeTarget)) && !player.options.retryChallenge) || (player.bestInfinityTime > 600 && !player.break))) {
- document.getElementById("dimensionsbtn").style.display = "none";
- document.getElementById("optionsbtn").style.display = "none";
- document.getElementById("statisticsbtn").style.display = "none";
- document.getElementById("achievementsbtn").style.display = "none";
- document.getElementById("challengesbtn").style.display = "none";
- document.getElementById("infinitybtn").style.display = "none";
- document.getElementById("tickSpeed").style.visibility = "hidden";
- document.getElementById("tickSpeedMax").style.visibility = "hidden";
- document.getElementById("tickLabel").style.visibility = "hidden";
- document.getElementById("tickSpeedAmount").style.visibility = "hidden";
- } else {
- document.getElementById("dimensionsbtn").style.display = "inline-block";
- document.getElementById("optionsbtn").style.display = "inline-block";
- document.getElementById("statisticsbtn").style.display = "inline-block";
- document.getElementById("achievementsbtn").style.display = "inline-block";
- if (player.infinitied > 0) {
- document.getElementById("infinitybtn").style.display = "inline-block";
- document.getElementById("challengesbtn").style.display = "inline-block";
- }
- }
- document.getElementById("epmult").className = player.eternityPoints.gte(player.epmultCost) ? "eternityupbtn" : "eternityupbtnlocked"
- if (player.infinityUpgrades.includes("bulkBoost")) document.getElementById("bulkdimboost").style.display = "inline"
- else document.getElementById("bulkdimboost").style.display = "none"
- if (player.infinityUpgrades.includes("timeMult")) document.getElementById("infi11").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("dimMult")) document.getElementById("infi21").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("18Mult")) document.getElementById("infi12").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("27Mult")) document.getElementById("infi22").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("36Mult")) document.getElementById("infi13").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("45Mult")) document.getElementById("infi23").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("resetBoost")) document.getElementById("infi14").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("galaxyBoost")) document.getElementById("infi24").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("timeMult2")) document.getElementById("infi31").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("unspentBonus")) document.getElementById("infi32").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("resetMult")) document.getElementById("infi33").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("passiveGen")) document.getElementById("infi34").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("skipReset1")) document.getElementById("infi41").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("skipReset2")) document.getElementById("infi42").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("skipReset3")) document.getElementById("infi43").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("skipResetGalaxy")) document.getElementById("infi44").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("totalMult")) document.getElementById("postinfi11").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("currentMult")) document.getElementById("postinfi21").className = "infinistorebtnbought"
- if (player.tickSpeedMultDecrease <= 2) document.getElementById("postinfi31").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("achievementMult")) document.getElementById("postinfi22").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("infinitiedMult")) document.getElementById("postinfi12").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("postGalaxy")) document.getElementById("postinfi41").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("challengeMult")) document.getElementById("postinfi32").className = "infinistorebtnbought"
- if (player.dimensionMultDecrease <= 3) document.getElementById("postinfi42").className = "infinistorebtnbought"
- if (player.offlineProd == 50) document.getElementById("offlineProd").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("infinitiedGeneration")) document.getElementById("postinfi13").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("bulkBoost")) document.getElementById("postinfi23").className = "infinistorebtnbought"
- if (player.infinityUpgrades.includes("autoBuyerUpgrade")) document.getElementById("postinfi33").className = "infinistorebtnbought"
- if (player.currentChallenge !== "") {
- document.getElementById("progressbar").style.width = Decimal.min((Decimal.log10(player.money.plus(1)) / Decimal.log10(player.challengeTarget) * 100), 100).toFixed(2) + "%"
- document.getElementById("progresspercent").textContent = Decimal.min((Decimal.log10(player.money.plus(1)) / Decimal.log10(player.challengeTarget) * 100), 100).toFixed(2) + "%"
- document.getElementById("progresspercent").setAttribute('ach-tooltip',"Percentage to challenge goal")
- } else if (!player.break) {
- document.getElementById("progressbar").style.width = Decimal.min((Decimal.log10(player.money.plus(1)) / Decimal.log10(Number.MAX_VALUE) * 100), 100).toFixed(2) + "%"
- document.getElementById("progresspercent").textContent = Decimal.min((Decimal.log10(player.money.plus(1)) / Decimal.log10(Number.MAX_VALUE) * 100), 100).toFixed(2) + "%"
- document.getElementById("progresspercent").setAttribute('ach-tooltip',"Percentage to Infinity")
- } else if (player.infDimensionsUnlocked.includes(false)) {
- document.getElementById("progressbar").style.width = Decimal.min(player.money.e / getNewInfReq().e * 100, 100).toFixed(2) + "%"
- document.getElementById("progresspercent").textContent = Decimal.min(player.money.e / getNewInfReq().e * 100, 100).toFixed(2) + "%"
- document.getElementById("progresspercent").setAttribute('ach-tooltip',"Percentage to next dimension unlock")
- } else {
- document.getElementById("progressbar").style.width = Decimal.min(Decimal.log10(player.infinityPoints.plus(1)) / Decimal.log10(Number.MAX_VALUE) * 100, 100).toFixed(2) + "%"
- document.getElementById("progresspercent").textContent = Decimal.min(Decimal.log10(player.infinityPoints.plus(1)) / Decimal.log10(Number.MAX_VALUE) * 100, 100).toFixed(2) + "%"
- document.getElementById("progresspercent").setAttribute('ach-tooltip',"Percentage to Eternity")
- }
- if (player.eternities > 0) {
- document.getElementById("infinitybtn").style.display = "inline-block";
- document.getElementById("challengesbtn").style.display = "inline-block";
- }
- document.getElementById("ec1reward").textContent = "Reward: "+shortenMoney(Math.pow(Math.max(player.thisEternity*10, 1), 0.3+(ECTimesCompleted("eterc1")*0.05)))+"x on all Time Dimensions (based on time spent this Eternity)"
- document.getElementById("ec2reward").textContent = "Reward: Infinity power affects 1st Infinity Dimension with reduced effect, Currently: "+shortenMoney(player.infinityPower.pow(1.5/(700 - ECTimesCompleted("eterc2")*100)).min(new Decimal("1e100")).max(1))+"x"
- document.getElementById("ec3reward").textContent = "Reward: Increase the multiplier for buying 10 dimensions, Currently: "+getDimensionPowerMultiplier().toFixed(2)+"x"
- document.getElementById("ec4reward").textContent = "Reward: Infinity Dimension multiplier from unspent IP, Currently: "+shortenMoney(player.infinityPoints.pow(0.003 + ECTimesCompleted("eterc4")*0.002).min(new Decimal("1e200")))+"x"
- document.getElementById("ec5reward").textContent = "Reward: Galaxy cost scaling starts "+((ECTimesCompleted("eterc5")*5))+" galaxies later."
- document.getElementById("ec6reward").textContent = "Reward: Further reduce the dimension cost multiplier increase, Currently: "+player.dimensionMultDecrease.toFixed(1)+"x "
- document.getElementById("ec7reward").textContent = "Reward: First Time dimension produces Eighth Infinity Dimensions, Currently: "+shortenMoney(getTimeDimensionProduction(1).pow(ECTimesCompleted("eterc7")*0.2).minus(1).max(0))+" per second. "
- document.getElementById("ec8reward").textContent = "Reward: Infinity power powers up replicanti galaxies, Currently: " + (Math.max(Math.pow(Math.log10(player.infinityPower.plus(1).log10()+1), 0.03 * ECTimesCompleted("eterc8"))-1, 0) * 100).toFixed(2) + "%"
- document.getElementById("ec9reward").textContent = "Reward: Infinity Dimension multiplier based on time shards, Currently: "+shortenMoney(player.timeShards.pow(ECTimesCompleted("eterc9")*0.1).min(new Decimal("1e400")))+"x "
- document.getElementById("ec10reward").textContent = "Reward: Time dimensions gain a multiplier from infinitied stat, Currently: "+shortenMoney(new Decimal(Math.max(Math.pow(getInfinitied(), 0.9) * ECTimesCompleted("eterc10") * 0.000002+1, 1)).pow((player.timestudy.studies.includes(31)) ? 4 : 1))+"x "
- document.getElementById("ec11reward").textContent = "Reward: Further reduce the tickspeed cost multiplier increase, Currently: "+player.tickSpeedMultDecrease.toFixed(2)+"x "
- document.getElementById("ec12reward").textContent = "Reward: Infinity Dimension cost multipliers are reduced. (x^"+(1-ECTimesCompleted("eterc12")*0.008)+")"
- // let extraGals = 0
- // if (player.timestudy.studies.includes(225)) extraGals += Math.floor(player.replicanti.amount.e / 2500)
- // if (player.timestudy.studies.includes(226)) extraGals += Math.floor(player.replicanti.gal / 40)
- // if (extraGals !== 0) document.getElementById("replicantireset").innerHTML = "Reset replicanti amount, but get a free galaxy<br>"+player.replicanti.galaxies + "+"+extraGals+ " replicated galaxies created."
- // else document.getElementById("replicantireset").innerHTML = "Reset replicanti amount, but get a free galaxy<br>"+player.replicanti.galaxies + " replicated galaxies created."
- document.getElementById("ec10span").textContent = shortenMoney(ec10bonus) + "x"
- var scale1 = [2.82e-45,1e-42,7.23e-30,5e-21,9e-17,6.2e-11,5e-8,3.555e-6,7.5e-4,1,2.5e3,2.6006e6,3.3e8,5e12,4.5e17,1.08e21,1.53e24,1.41e27,5e32,8e36,1.7e45,1.7e48,3.3e55,3.3e61,5e68,1e73,3.4e80,1e113,Number.MAX_VALUE,new Decimal("1e65000")];
- var scale2 = [" protons."," nucleui."," Hydrogen atoms."," viruses."," red blood cells."," grains of sand."," grains of rice."," teaspoons."," wine bottles."," fridge-freezers."," Olympic-sized swimming pools."," Great Pyramids of Giza."," Great Walls of China."," large asteroids.",
- " dwarf planets."," Earths."," Jupiters."," Suns."," red giants."," hypergiant stars."," nebulas."," Oort clouds."," Local Bubbles."," galaxies."," Local Groups."," Sculptor Voids."," observable universes."," Dimensions.", " Infinity Dimensions.", " Time Dimensions."];
- var id = 0;
- if (player.money.times(4.22419e-105).gt(2.82e-45)) {
- if (player.money.times(4.22419e-105).gt(scale1[scale1.length - 1])) id = scale1.length - 1;
- else {
- while (player.money.times(4.22419e-105).gt(scale1[id])) id++;
- if (id > 0) id--;
- }
- if (id >= 7 && id < 11) document.getElementById("infoScale").textContent = "If every antimatter were a planck volume, you would have enough to fill " + formatValue(player.options.notation, player.money * 4.22419e-105 / scale1[id], 2, 1) + scale2[id];
- else document.getElementById("infoScale").textContent = "If every antimatter were a planck volume, you would have enough to make " + formatValue(player.options.notation, player.money.times(4.22419e-105).dividedBy(scale1[id]), 2, 1) + scale2[id];
- } else { //does this part work correctly? i doubt it does
- if (player.money.times(1e-54) < 2.82e-45) document.getElementById("infoScale").textContent = "If every antimatter were " + formatValue(player.options.notation,2.82e-45 / 1e-54 / player.money, 2, 1) + " attometers cubed, you would have enough to make a proton."
- else if (player.money * 1e-63 < 2.82e-45) document.getElementById("infoScale").textContent = "If every antimatter were " + formatValue(player.options.notation,2.82e-45 / 1e-63 / player.money, 2, 1) + " zeptometers cubed, you would have enough to make a proton."
- else if (player.money * 1e-72 < 2.82e-45) document.getElementById("infoScale").textContent = "If every antimatter were " + formatValue(player.options.notation,2.82e-45 / 1e-72 / player.money, 2, 1) + " yoctometers cubed, you would have enough to make a proton."
- else document.getElementById("infoScale").textContent = "If every antimatter were " + formatValue(player.options.notation,2.82e-45 / 4.22419e-105 / player.money, 2, 1) + " planck volumes, you would have enough to make a proton."
- }
- if (player.money.gt(new Decimal("1e100000"))) {
- document.getElementById("infoScale").innerHTML = "<br>If you wrote 3 numbers a second, it would take you <br>" + timeDisplay(player.money.log10()*10/3) + "<br> to write down your antimatter amount.";
- }
- var shiftRequirement = getShiftRequirement(0);
- if (player[TIER_NAMES[shiftRequirement.tier] + 'Amount'] >= shiftRequirement.amount) {
- document.getElementById("softReset").className = 'storebtn';
- } else {
- document.getElementById("softReset").className = 'unavailablebtn';
- }
- if (player.eightAmount >= getGalaxyRequirement()) {
- document.getElementById("secondSoftReset").className = 'storebtn';
- } else {
- document.getElementById("secondSoftReset").className = 'unavailablebtn';
- }
- if (player.currentChallenge == "challenge4" && player.sixthAmount >= getGalaxyRequirement()) {
- document.getElementById("secondSoftReset").className = 'storebtn';
- }
- if (player.currentChallenge == "challenge2" || player.currentChallenge == "postc1") document.getElementById("chall2Pow").style.display = "inline-block"
- else document.getElementById("chall2Pow").style.display = "none"
- if (player.currentChallenge == "challenge3" || player.currentChallenge == "postc1") document.getElementById("chall3Pow").style.display = "inline-block"
- else document.getElementById("chall3Pow").style.display = "none"
- document.getElementById("chall2Pow").textContent = (player.chall2Pow*100).toFixed(2) + "%"
- document.getElementById("chall3Pow").textContent = shorten(player.chall3Pow*100) + "%"
- if (player.infDimensionsUnlocked[7] == false && player.break && player.eternities <= 24) {
- document.getElementById("newDimensionButton").style.display = "inline-block"
- } else document.getElementById("newDimensionButton").style.display = "none"
- if (player.money.gte(getNewInfReq())) document.getElementById("newDimensionButton").className = "newdim"
- else document.getElementById("newDimensionButton").className = "newdimlocked"
- var infdimpurchasewhileloop = 1;
- while (player.eternities > 24 && getNewInfReq().lt(player.money) && player.infDimensionsUnlocked[7] === false) {
- for (i=0; i<8; i++) {
- if (player.infDimensionsUnlocked[i]) infdimpurchasewhileloop++
- }
- newDimension()
- if (player.infDimBuyers[i-1]) buyMaxInfDims(infdimpurchasewhileloop)
- infdimpurchasewhileloop = 1;
- }
- document.getElementById("newDimensionButton").textContent = "Get " + shortenCosts(getNewInfReq()) + " antimatter to unlock a new Dimension."
- document.getElementById("sacrifice").setAttribute('ach-tooltip', "Boosts 8th Dimension by " + formatValue(player.options.notation, calcSacrificeBoost(), 2, 2) + "x");
- document.getElementById("sacrifice").textContent = "Dimensional Sacrifice ("+formatValue(player.options.notation, calcSacrificeBoost(), 2, 2)+"x)"
- if (isNaN(player.totalmoney)) player.totalmoney = new Decimal(10)
- if (player.timestudy.studies.includes(181)) player.infinityPoints = player.infinityPoints.plus(gainedInfinityPoints().times(diff/1000))
- if (player.dilation.upgrades.includes(10)) {
- player.timestudy.theorem += parseFloat(player.dilation.tachyonParticles.div(20000).times(diff/10).toString())
- if (document.getElementById("timestudies").style.display != "none" && document.getElementById("eternitystore").style.display != "none") {
- if (player.timestudy.theorem>99999) document.getElementById("timetheorems").innerHTML = "You have <span style='display:inline' class=\"TheoremAmount\">"+shortenMoney(player.timestudy.theorem)+"</span> Time "+"Theorems."
- else document.getElementById("timetheorems").innerHTML = "You have <span style='display:inline' class=\"TheoremAmount\">"+player.timestudy.theorem.toFixed(0)+"</span> Time "+ (player.timestudy.theorem == 1 ? "Theorem." : "Theorems.")
- updateTimeStudyButtons()
- }
- }
- document.getElementById("infinityPoints1").innerHTML = "You have <span class=\"IPAmount1\">"+shortenDimensions(player.infinityPoints)+"</span> Infinity points."
- document.getElementById("infinityPoints2").innerHTML = "You have <span class=\"IPAmount2\">"+shortenDimensions(player.infinityPoints)+"</span> Infinity points."
- player.lastUpdate = thisUpdate;
- }
- function DimensionPower(tier) {
- var dim = player["infinityDimension"+tier]
- if (player.currentEternityChall == "eterc11") return new Decimal(1)
- var mult = dim.power
- mult = mult.times(infDimPow)
- if (player.achievements.includes("a11")) mult = mult.times(7.77)
- mult = mult.times(kongAllDimMult)
- if (player.achievements.includes("r94") && tier == 1) mult = mult.times(2);
- if (player.achievements.includes("r75")) mult = mult.times(player.achPow);
- if (player.replicanti.unl && player.replicanti.amount.gt(1)) {
- var replmult = Decimal.pow(Decimal.log2(player.replicanti.amount), 2)
- if (player.achievements.includes("a12")) replmult = replmult.pow((player.galaxies+1)/10)
- if (player.timestudy.studies.includes(21)) replmult = replmult.plus(Decimal.pow(player.replicanti.amount, 0.032))
- if (player.timestudy.studies.includes(102)) replmult = replmult.times(Decimal.pow(5, player.replicanti.galaxies))
- mult = mult.times(replmult)
- }
- if (player.timestudy.studies.includes(72) && tier == 4) {
- mult = mult.times(calcTotalSacrificeBoost().pow(0.04).max(1).min("1e30000"))
- }
- if (player.timestudy.studies.includes(82)) {
- mult = mult.times(Decimal.pow(1.0000109,Math.pow(player.resets,2)))
- }
- if (player.eternityUpgrades.includes(1)) {
- mult = mult.times(player.eternityPoints.plus(1))
- }
- if (player.eternityUpgrades.includes(2)) mult = mult.times(Decimal.pow(Math.min(player.eternities, 100000)/200 + 1, Math.log(Math.min(player.eternities, 100000)*2+1)/Math.log(4)).times(new Decimal((player.eternities-100000)/200 + 1).times(Math.log((player.eternities- 100000)*2+1)/Math.log(4)).max(1)))
- if (player.eternityUpgrades.includes(3)) mult = mult.times(Decimal.pow(2,300/Math.max(infchallengeTimes, player.achievements.includes("r112") ? 6.1 : 7.5)))
- if (player.timestudy.studies.includes(92)) mult = mult.times(Decimal.pow(2, 600/Math.max(player.bestEternity, 20)))
- if (player.timestudy.studies.includes(162)) mult = mult.times(1e11)
- if (ECTimesCompleted("eterc2") !== 0 && tier == 1) mult = mult.times(player.infinityPower.pow(1.5/(700-ECTimesCompleted("eterc2")*100)).min(new Decimal("1e100")).plus(1))
- if (player.currentEternityChall == "eterc2") mult = mult.times(0)
- if (ECTimesCompleted("eterc4") !== 0) mult = mult.times(player.infinityPoints.pow(0.003 + ECTimesCompleted("eterc4")*0.002).min(new Decimal("1e200")))
- if (ECTimesCompleted("eterc9") !== 0) mult = mult.times(player.timeShards.pow(ECTimesCompleted("eterc9")*0.1).plus(1).min(new Decimal("1e400")))
- if (mult.lt(0)) mult = new Decimal(0)
- if (player.dilation.active) {
- mult = Decimal.pow(10, Math.pow(mult.log10(), 0.75))
- if (player.dilation.upgrades.includes(9)) {
- mult = Decimal.pow(10, Math.pow(mult.log10(), 1.05))
- }
- }
- return mult
- }
- function getDimensionProductionPerSecond(tier) {
- if (tier > 8) {
- if (player.achievements.includes("a13")) {
- return Decimal.mul(new Decimal(Decimal.log2(player.timeDimension8.amount.plus(1))).plus(1).dividedBy(player.eightAmount.plus(1).dividedBy(10)),Decimal.pow(0.1,tier-9)).times(10)
- } else {
- return new Decimal(0)
- }
- } else {
- let ret = Decimal.floor(player[TIER_NAMES[tier] + 'Amount']).times(getDimensionFinalMultiplier(tier)).times(1000).dividedBy(player.tickspeed)
- if (player.currentChallenge == "challenge7") {
- if (tier == 4) ret = player[TIER_NAMES[tier] + 'Amount'].floor().pow(1.3).times(getDimensionFinalMultiplier(tier)).dividedBy(player.tickspeed.dividedBy(1000))
- else if (tier == 2) ret = player[TIER_NAMES[tier] + 'Amount'].floor().pow(1.5).times(getDimensionFinalMultiplier(tier)).dividedBy(player.tickspeed.dividedBy(1000))
- }
- if (player.currentChallenge == "challenge2" || player.currentChallenge == "postc1") ret = ret.times(player.chall2Pow)
- if (player.dilation.active) {
- let tick = new Decimal(player.tickspeed)
- tick = Decimal.pow(10, Math.pow(Math.abs(tick.log10()), 0.75))
- if (player.dilation.upgrades.includes(9)) {
- tick = Decimal.pow(10, Math.pow(Math.abs(tick.log10()), 1.05))
- }
- tick = new Decimal(1).dividedBy(tick)
- ret = Decimal.floor(player[TIER_NAMES[tier] + 'Amount']).times(getDimensionFinalMultiplier(tier)).times(1000).dividedBy(tick)
- }
- return ret;
- }
- }
- function giveAchievement(name) {
- if (player.achievements.includes(name)){ clearOldAchieves(); }
- if (player.achievements.includes(allAchievementNums[name])) return false
- $.notify(name, "success");
- player.achievements.push(allAchievementNums[name]);
- if (!name.includes("a")) {
- document.getElementById(name).className = "achievementunlocked"
- }
- kong.submitStats('Achievements', player.achievements.length);
- if (name == "All your IP are belong to us" || name == "MAXIMUM OVERDRIVE") {
- player.infMult = player.infMult.times(4);
- player.autoIP = player.autoIP.times(4);
- if (player.autoCrunchMode == "amount" && player.autobuyers[11].priority != undefined) player.autobuyers[11].priority = player.autobuyers[11].priority.times(4);
- }
- updateAchievements();
- }
Add Comment
Please, Sign In to add comment