Greasy Fork

来自缓存

Greasy Fork is available in English.

Plant random berry and auto harvest - pokeclicker.com

Automatically plant and harvest berries.

当前为 2021-09-21 提交的版本,查看 最新版本

// ==UserScript==
// @name        Plant random berry and auto harvest - pokeclicker.com
// @namespace   Violentmonkey Scripts
// @match       https://www.pokeclicker.com/
// @grant       none
// @version     1.7
// @author      DrAK
// @description Automatically plant and harvest berries.
// ==/UserScript==

var whichBerry = Math.floor(Math.random() * 8);


function loopFarm() {
  var farmLoop = setInterval(function () {

    
for (let i = 0; i < 25; i++) {


if (i == 12) { 
//leave middle empty
App.game.farming.harvest(i, true);
  i++; 
}

if(App.game.farming.plotList[i].stage() && App.game.farming.plotList[i].stage() == 4 && App.game.farming.plotList[i].age > (App.game.farming.plotList[i].berryData.growthTime[4] * 0.7) ) {


App.game.farming.harvest(i, true);

App.game.farming.plant(i, Math.floor(Math.random() * (App.game.farming.highestUnlockedBerry()+1)), true);


}



  
} 


    
  }, 5000); 
}

loopFarm();