1
0
Fork 0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-11-08 14:00:12 +00:00

Rename function as it does more than purchasing

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-14 13:21:29 +02:00
parent 8a93f89a96
commit c5fd6a765c
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -25,7 +25,7 @@ function autoClick() {
$('#bigCookie').click();
}
function autoPurchaseUpgrades() {
function executeAutoActions() {
// Look for upgrades being available
let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter);
if (availableUpgrades.length > 0) {
@ -102,7 +102,7 @@ function getMaxBuy() {
window.checkCPS = window.setInterval(checkCPS, 1000);
// Enable automatic purchasing of upgrades / elements
window.autoPurchase = window.setInterval(autoPurchaseUpgrades, 500);
window.autoPurchase = window.setInterval(executeAutoActions, 500);
// Startup notification
let version = GM_info.script.version;