mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-22 18:21:18 +00:00
Rename function as it does more than purchasing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8a93f89a96
commit
c5fd6a765c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue