Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- 'use strict';
- var node=document.createElement("span");
- node.style.display="inline-block";
- $("#infinityPoints2")[0].parentNode.appendChild(node);
- $("#infinityPoints2")[0].setAttribute("class","");
- node.parentNode.setAttribute("class","IP");
- node.parentNode.style.position="absolute";
- node.parentNode.style.left="65%";
- window.bestExppm=-100000;
- window.prevExpP=-1;
- window.bestIP=0;
- window.crunchTimer=60;
- //window.eterniTimer=60;
- window.lastBest=-100000;
- window.bestEPm=new Decimal(0);
- window.bestEP=0;
- window.NeedRGal=40;
- window.NeedGal=198;
- window.lbMant=0;
- window.ptimer=0;
- window.PrcM=0;
- window.EPmP=1;
- window.Search=false;
- window.FinishLine=false;
- window.PeakedThisInfinity=false;
- window.preEPM=1;
- window.Paused=false;
- window.EPm=new Decimal(0);
- var node2=document.createElement("span");
- node.style.display="inline-block";
- $("#eternityPoints2")[0].parentNode.appendChild(node2);
- $("#eternityPoints2")[0].setAttribute("class","");
- node2.parentNode.setAttribute("class","IP");
- node2.parentNode.style.position="absolute";
- node2.parentNode.style.left="20.5%";
- $('#eternitybtn').click(function() {
- bestEP=0;
- bestEPm=new Decimal(0);
- FinishLine=false;
- if (Search)
- {
- NeedGal=0;
- NeedRGal=0;
- }
- setTimeout(
- function()
- {
- if (player.eternityPoints.div(1.2).gte(player.epmultCost))
- {
- buyEPMult();
- }
- if (player.eternityPoints.multiply(5).lt(player.epmultCost))
- {
- buyMaxTimeDimensions();
- while (player.eternityPoints.gte(player.timestudy.epcost.multiply(16)) && buyWithEP()) continue
- }
- }
- ,1000);
- });
- window.fakeGainedEternityPoints=function(IPs) {
- var ret = Decimal.pow(5, (IPs.e+Math.log10(IPs.mantissa))/308 -0.7).times(player.epmult)
- if (player.timestudy.studies.includes(61)) ret = ret.times(10)
- if (player.timestudy.studies.includes(121)) ret = ret.times(((253 - averageEp.dividedBy(player.epmult).dividedBy(10).min(248).max(3))/5)) //x300 if tryhard, ~x60 if not
- else if (player.timestudy.studies.includes(122)) ret = ret.times(35)
- else if (player.timestudy.studies.includes(123)) ret = ret.times(Math.sqrt(1.39*player.thisEternity/10))
- return ret.floor()
- }
- window.fakeGainedInfinityPoints=function(AM) {
- var pme=(AM.e+Math.log10(AM.mantissa));
- let div = 308;
- if (player.timestudy.studies.includes(111)) div = 285;
- else if (player.achievements.includes("r103")) div = 307.8;
- var ret = Decimal.pow(10, pme/div -0.75).times(player.infMult).times(kongIPMult)
- if (player.timestudy.studies.includes(41)) ret = ret.times(Decimal.pow(1.2, player.galaxies + player.replicanti.galaxies))
- if (player.timestudy.studies.includes(51)) ret = ret.times(1e15)
- if (player.timestudy.studies.includes(141)) ret = ret.times(new Decimal(1e45).dividedBy(Decimal.pow(15, Math.log(player.thisInfinityTime+1)*Math.pow(player.thisInfinityTime+1, 0.125))).max(1))
- if (player.timestudy.studies.includes(142)) ret = ret.times(1e25)
- if (player.timestudy.studies.includes(143)) ret = ret.times(Decimal.pow(15, Math.log(player.thisInfinityTime+1)*Math.pow(player.thisInfinityTime+1, 0.125)))
- if (player.achievements.includes("r116")) ret = ret.times(Decimal.pow(2, Math.log10(getInfinitied()+1)))
- return ret.floor()
- }
- $('#postInfinityButton').click(function() {
- bestExppm=-100000;
- lbMant=0;
- PeakedThisInfinity=false;
- });
- setInterval(function(){
- if (!Search)
- {
- if (player.timestudy.studies.includes(181) || NeedRGal<=player.replicanti.galaxies && NeedGal<=player.galaxies)
- {
- FinishLine=true;
- }
- }
- },1000);
- window.Exppm=new Decimal("0");
- setInterval(function(){
- var ipAlready=player.lastTenRuns[0][1];
- var ipGain=fakeGainedInfinityPoints(player.money);
- var ipSum=(ipAlready.exponent-10>ipGain.exponent)?ipGain:ipAlready.plus(ipGain);
- var ipGainLog=ipSum.exponent+Math.log10(ipSum.mantissa);
- var ipAlreadyLog=ipAlready.exponent+Math.log10(ipAlready.mantissa);
- var newExpP=(ipGainLog-ipAlreadyLog)/player.thisInfinityTime;
- Exppm=newExpP;
- ptimer++;
- if (ptimer==20)
- {
- PrcM=(newExpP-prevExpP)/prevExpP*50*60;
- prevExpP=newExpP;
- ptimer=0;
- }
- if(player.thisInfinityTime>1&&Exppm>bestExppm){
- bestExppm=Exppm;
- bestIP=ipGain;
- }
- node.innerHTML="BIP:"+shorten(bestIP)+"<br> BEpH:"+shorten(bestExppm*36000)+"<br>NIP:"+shorten(ipGain)+" ("+(Paused?"P":crunchTimer)+")<br>NEpH:"+shorten(Exppm*36000)+" "+shorten(PrcM)+"%";
- if (!player.timestudy.studies.includes(181))
- {
- if (!Paused && ipGainLog-ipAlreadyLog>100 && (player.replicanti.galaxies==0 || (player.replicanti.galaxies==player.replicanti.gal && player.replicanti.amount.gt(1.5e308))))
- {
- $('#postInfinityButton').click();
- }
- }
- else
- {
- if (player.infinitied<1000000 && player.thisInfinityTime>50)
- {
- $('#postInfinityButton').click();
- }
- }
- },100);
- setInterval(function(){
- while (buyWithAntimatter()) continue
- while (buyWithIP()) continue
- },10000);
- setInterval(function(){
- var EP=fakeGainedEternityPoints(player.infinityPoints.add(fakeGainedInfinityPoints(player.money)));
- if (player.eternityPoints.exponent>307 && player.eternityPoints.exponent<=400)
- {
- var epAlready=player.eternityPoints;
- var epGain=EP;
- var epSum=(epAlready.exponent-10>epGain.exponent)?new Decimal(0):epAlready.plus(epGain);
- var epGainLog=epSum.exponent+Math.log10(epSum.mantissa);
- var epAlreadyLog=epAlready.exponent+Math.log10(epAlready.mantissa);
- EPm=new Decimal((epGainLog-epAlreadyLog)/(player.thisEternity+1));
- }
- else
- {
- EPm=EP.div(player.thisEternity+1);
- }
- EPmP=EPm.minus(preEPM).div(preEPM).multiply(6000);
- var wh=bestEPm.minus(EPm).div(EPm.minus(preEPM));
- preEPM=EPm;
- if (Search)
- {
- if (EPm.gt(bestEPm))
- {
- bestEPm=EPm;
- bestEP=EP;
- NeedGal=player.galaxies;
- NeedRGal=player.replicanti.galaxies;
- }
- PeakedThisInfinity=true;
- }
- else
- {
- if (EPm.gt(bestEPm) || !FinishLine)
- {
- bestEPm=EPm;
- bestEP=EP;
- PeakedThisInfinity=true;
- NeedGal=Math.max(player.galaxies,NeedGal);
- NeedRGal=Math.max(player.replicanti.galaxies,NeedRGal);
- }
- }
- node2.innerHTML=(Search?("Bat: "+NeedRGal+"/"+NeedGal+"<br>BEH:"+shorten(bestEPm.multiply(36000))+"("+(wh.lessThan(0)?"*":shorten(wh))+")"):((FinishLine?("BEP:"+shorten(bestEP)+" "+player.replicanti.galaxies+"/"+player.replicanti.gal+"<br> BEH:"+shorten(bestEPm.multiply(36000))+" "+(PeakedThisInfinity?"+":"-")+"("+(wh.lessThan(0)?"*":shorten(wh))+")"):
- ("RG: "+player.replicanti.galaxies+"/"+player.replicanti.gal+"/"+NeedRGal+"<br>NG: "+player.galaxies+"/"+NeedGal))))
- +"<br>NEP:"+shorten(EP)+"<br>NEH:"+shorten(EPm.multiply(36000))+" "+shorten(EPmP)+"%";
- },1000);
- setInterval(function(){
- if (lastBest!=bestExppm)
- {
- 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.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 estimate = Math.max(Math.log(Number.MAX_VALUE) / est, 0)
- crunchTimer=(estimate<60 && estimate>6 && player.replicanti.galaxies<player.replicanti.gal)?(Math.ceil(estimate*2.1)):15;
- lastBest=bestExppm;
- lbMant=player.money.e
- }
- else
- {
- if (!Paused)
- {
- if (player.timestudy.studies.includes(181))
- {
- var Thr=0.99;
- if (player.eternityPoints.exponent>307 && player.eternityPoints.exponent<=400)
- {
- Thr=0.99;
- }
- if (EPmP.lessThan(0) && EPm.lessThan(bestEPm.multiply(Thr)) )
- {
- $('#eternitybtn').click();
- FinishLine=false;
- TM=0;
- }
- }
- else
- {
- crunchTimer=Math.max(crunchTimer-1,0);
- if (crunchTimer<=0 && lbMant<player.money.e && fakeGainedInfinityPoints(player.money).sub(player.infinityPoints).gt(100000) && EPmP.lessThan(0))
- {
- if (!PeakedThisInfinity && NeedRGal<=player.replicanti.galaxies && NeedGal<=player.galaxies)
- {
- $('#eternitybtn').click();
- FinishLine=false;
- }
- else
- {
- $('#postInfinityButton').click();
- }
- }
- }
- }
- }
- }
- ,1000);
- setInterval("replicantiGalaxy()",100)
- setInterval(function(){
- var gep=player.eternityPoints.add(gainedEternityPoints());
- if (
- player.replicanti.galaxies==player.replicanti.gal &&
- (
- //player.thisEternity>=10*60*60*24 ||
- (
- gep.div(1.25).gte(player.epmultCost) ||
- gep.multiply(5).lt(player.epmultCost) && gep.gte(player.timeDimension1.cost.add(player.timeDimension2.cost).add(player.timeDimension3.cost).add(player.timeDimension4.cost).dividedBy(3))
- ) &&
- player.thisEternity>=10*60*5
- )
- )
- {
- $('#eternitybtn').click();
- FinishLine=false;
- }
- },5000);
- })();
- window.LastFive=[0,0,0,0,0];
- window.oldAddData=addData;
- addData=function(chart, label, data){
- var dt=0;
- if (player.options.notation === "Logarithm") {
- dt = Math.max(data.log(10), 0.1);
- } else {
- dt = data.exponent + (data.mantissa / 10);
- }
- if (dt<Array.max(LastFive)/2)
- {
- data.exponent=Array.max(LastFive);
- }
- LastFive=[LastFive[LastFive.length-19],LastFive[LastFive.length-18],LastFive[LastFive.length-17],LastFive[LastFive.length-16],LastFive[LastFive.length-15],LastFive[LastFive.length-14],LastFive[LastFive.length-13],LastFive[LastFive.length-12],LastFive[LastFive.length-11],LastFive[LastFive.length-10],LastFive[LastFive.length-9],LastFive[LastFive.length-8],LastFive[LastFive.length-7],LastFive[LastFive.length-6],LastFive[LastFive.length-5],LastFive[LastFive.length-4],LastFive[LastFive.length-3],LastFive[LastFive.length-2],LastFive[LastFive.length-1],dt];
- oldAddData(chart,label,data);
- }
- function addDataCorr(chart, label, data)
- {
- if (chart.data.datasets[0].data.length >= Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000)) {
- chart.data.labels.shift();
- chart.data.datasets[0].data.shift();
- }
- if (player.options.notation === "Logarithm") {
- data = Math.max(data.log(10), 0.1);
- } else {
- data = data.exponent + Math.log10(data.mantissa);
- }
- comp1 = Array.max(chart.data.datasets[0].data);
- comp2 = Array.min(chart.data.datasets[0].data);
- if (data > comp1) {
- chart.options.scales.yAxes[0].ticks.max = data;
- }
- if (chart.options.scales.yAxes[0].ticks.min < comp2) {
- chart.options.scales.yAxes[0].ticks.min = comp2;
- }
- if (data < chart.options.scales.yAxes[0].ticks.min) {
- chart.options.scales.yAxes[0].ticks.min = data;
- }
- var preservedChartValues = false;
- let failSafe = 0;
- while (chart.data.datasets[0].data.length < Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- if (preservedChartValues) {
- chart.data.labels.push(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.push(data);
- });
- } else {
- var temp = chart.data.datasets[0].data.slice()
- var tempData = data;
- preservedChartValues = true;
- }
- if (chart.data.datasets[0].data.length >= Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- var temp2 = chart.data.datasets[0].data.slice()
- for (i=0; i<temp.length; i++) {
- temp2[chart.data.datasets[0].data.length - temp.length + i] = temp[i];
- temp2[i] = data;
- }
- chart.data.datasets[0].data = temp2;
- }
- }
- while (chart.data.datasets[0].data.length > Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1) && failSafe < (player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- chart.data.labels.pop(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.pop(data);
- });
- failSafe++;
- }
- chart.data.labels.push(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.push(data);
- });
- chart.update(300);
- }
- function addDataNoLog(chart, label, data)
- {
- if (chart.data.datasets[0].data.length >= Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000)) {
- chart.data.labels.shift();
- chart.data.datasets[0].data.shift();
- }
- data=Math.pow(10.0,data.exponent)*data.mantissa;
- comp1 = Array.max(chart.data.datasets[0].data);
- comp2 = Array.min(chart.data.datasets[0].data);
- if (data > comp1) {
- chart.options.scales.yAxes[0].ticks.max = data;
- }
- if (chart.options.scales.yAxes[0].ticks.min < comp2) {
- chart.options.scales.yAxes[0].ticks.min = comp2;
- }
- if (data < chart.options.scales.yAxes[0].ticks.min) {
- chart.options.scales.yAxes[0].ticks.min = data;
- }
- var preservedChartValues = false;
- let failSafe = 0;
- while (chart.data.datasets[0].data.length < Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- if (preservedChartValues) {
- chart.data.labels.push(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.push(data);
- });
- } else {
- var temp = chart.data.datasets[0].data.slice()
- var tempData = data;
- preservedChartValues = true;
- }
- if (chart.data.datasets[0].data.length >= Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- var temp2 = chart.data.datasets[0].data.slice()
- for (i=0; i<temp.length; i++) {
- temp2[chart.data.datasets[0].data.length - temp.length + i] = temp[i];
- temp2[i] = data;
- }
- chart.data.datasets[0].data = temp2;
- }
- }
- while (chart.data.datasets[0].data.length > Math.ceil(player.options.chart.duration / player.options.chart.updateRate * 1000 - 1) && failSafe < (player.options.chart.duration / player.options.chart.updateRate * 1000 - 1)) {
- chart.data.labels.pop(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.pop(data);
- });
- failSafe++;
- }
- chart.data.labels.push(label);
- chart.data.datasets.forEach((dataset) => {
- dataset.data.push(data);
- });
- chart.update(300);
- }
- addData=function(chart, label, data){
- if (player.eternityPoints.exponent<=307 || player.eternityPoints.exponent>400)
- {
- addDataCorr(chart,label,EPm.multiply(36000));
- }
- else if (EPm.mantissa<0)
- {
- addDataNoLog(chart,label,new Decimal(0));
- }
- else
- {
- addDataNoLog(chart,label,EPm.multiply(36000));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment