Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function autoclicky(){
- for (var i=0; i<100; i++) {
- game.stats()[5].add(1);
- game.stats()[6].add(1);
- game.generalStats()[6].val(Date.now());
- var toAdd = game.earnedPerClick.val();
- if (game.isWindfall()) {
- game.stats()[66].add(toAdd);
- }
- game.clickStats()[2].add(toAdd);
- game.addClicks(toAdd);
- }
- setTimeout(autoclicky, 1);
- };
- function investy(){
- document.querySelector('button.investment-submit:nth-child(2)').click();
- var investmentLimit = game.totalSimultaneousInvestmentsAllowed.val();
- document.getElementById('investmentModal').style.display = "none";
- var bd = document.querySelector('.modal-backdrop');
- if (bd) bd.remove();
- if (game.activeInvestments === undefined) {
- setTimeout(investy, 1500);
- return;
- }
- for (var i = 0; i < investmentLimit; i++) {
- if (game.activeInvestments()[i] === undefined) {
- break;
- }
- game.activeInvestments()[i].timeRemaining(1);
- }
- setTimeout(function(){
- document.querySelector('button.investment-btn:nth-child(3) > span:nth-child(1)').click();
- }, 1000);
- game.saveGame();
- document.getElementById('investmentModal').style.display = "none";
- setTimeout(investy, 1500);
- };
- function trainy(){
- game.finishAllTrainings();
- game.multiTrain();
- for(var i=0;i<12;i++) {
- game.units()[i].timeRemaining(1);
- }
- game.finishAllTrainings();
- setTimeout(trainy, 100);
- }
- function potentialEarnings(unit) {
- if (unit.num.val() === 0) {
- var baseCPS = (parseFloat(unit.baseClick()) * Math.pow(2, unit.mod.val() + game.stats()[42].val())) * 1;
- var baseMod = baseCPS * (game.stats()[15].val() / 100);
- var quantityMod = (unit.numMod.val() * 1) / 100;
- quantityMod = quantityMod > 1 ? quantityMod : 1;
- return (baseCPS + baseMod) * game.stats()[38].val() * game.cashStats()[7].val() * quantityMod;
- } else {
- return 0;
- }
- }
- function smart_hiring_choice(){
- var max = 0;
- var index = -1;
- var units = game.units();
- for (var i=0; i<12; i++) {
- var cash = game.units()[i].cps.val() / game.units()[i].num.val();
- if (cash === 0 || isNaN(cash)) {
- cash = potentialEarnings(units[i]);
- }
- var investment = cash / units[i].price.val();
- if (investment > max) {
- max = investment;
- index = i;
- }
- }
- return index;
- }
- function smart_hire(n=1000000000000000000) {
- var borne = Math.min(100, n);
- game.buyAllUpgrades()
- var backlog = [0,0,0,0,0,0,0,0,0,0,0,0];
- for (var i = 0; i < borne; i++) {
- var index = smart_hiring_choice();
- if (game.units()[index].cantAfford()) {
- console.log("Next to buy: " + game.units()[index].name());
- break;
- } else {
- game.units()[index].buy(1);
- backlog[index]++;
- console.log("Hired " + game.units()[index].name());
- }
- }
- n -= 100;
- if (n > 0) {
- setTimeout(function(){smart_hire(n-100)}, 250);
- }
- }
- function maily() {
- var emails = game.mail();
- if (emails.length > 0){
- for (var i = emails.length - 1; i >= 0; i--) {
- var from = game.mail()[i].from;
- var text = from + ", ROI B2B B2C KPI SEO EOD CTR BYOD ASAP brand sales agile pivot ideate client profit stocks shares market EBITDA action synergy clients profits disrupt startup mission hacking startup unicorn revenue downsize ideation innovate dynamism holistic paradigm branding customer leverage gamified overhead bandwidth customers evergreen analytics outsource marketing executive valuation marketing disruptive innovation millennial wheelhouse hyperlocal investment investment downsizing wunderkind actionable influencer outsourcing investments deliverable outsourcing stakeholders optimization shareholders gamification globalization advertainment. Thanks. Regards,".repeat(5000);
- game.mail()[i].inputText(text);
- game.mail()[i].respond();
- }
- }
- setTimeout(maily, 1000);
- }
- autoclicky();
- maily();
- smart_hire();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement