1
0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-09-19 15:23:02 +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(); $('#bigCookie').click();
} }
function autoPurchaseUpgrades() { function executeAutoActions() {
// Look for upgrades being available // Look for upgrades being available
let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter); let availableUpgrades = $('.upgrade.enabled').filter(upgradeFilter);
if (availableUpgrades.length > 0) { if (availableUpgrades.length > 0) {
@ -102,7 +102,7 @@ function getMaxBuy() {
window.checkCPS = window.setInterval(checkCPS, 1000); window.checkCPS = window.setInterval(checkCPS, 1000);
// Enable automatic purchasing of upgrades / elements // Enable automatic purchasing of upgrades / elements
window.autoPurchase = window.setInterval(autoPurchaseUpgrades, 500); window.autoPurchase = window.setInterval(executeAutoActions, 500);
// Startup notification // Startup notification
let version = GM_info.script.version; let version = GM_info.script.version;