fix farm resourses
This commit is contained in:
@@ -78,7 +78,8 @@ async function executeFarmUpgrade(cmd) {
|
||||
isLocked ? unlocked++ : upgraded++;
|
||||
} catch (e) { errors++; }
|
||||
|
||||
await sleep(randInt(1200, 2500));
|
||||
await sleep(randInt(4000, 10000));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -204,17 +205,10 @@ async function executeFarmLoot(cmd) {
|
||||
claimed++;
|
||||
} catch (e) { errors++; }
|
||||
|
||||
await sleep(randInt(1000, 2200));
|
||||
await sleep(randInt(500, 1500));
|
||||
}
|
||||
|
||||
try { uw.WMap.removeFarmTownLootCooldownIconAndRefreshLootTimers(); } catch (e) {}
|
||||
|
||||
if (i < islandList.length - 1) {
|
||||
if (paused) return { ok: false, msg: 'Aborted due to pause/captcha' };
|
||||
const gap = randInt(30000, 90000);
|
||||
log(`Farm: island done. Waiting ${(gap / 1000).toFixed(0)}s before next island...`);
|
||||
await sleep(gap);
|
||||
}
|
||||
}
|
||||
|
||||
return { ok: true, msg: `Farm done: ${claimed} claimed, ${skipped} islands skipped, ${errors} errors` };
|
||||
|
||||
Reference in New Issue
Block a user