NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Idle Droplets // @namespace Idle Droplets // @include http://www.filltheoceans.com/ // @version 1 // @grant none // ==/UserScript== var auto = setInterval(() => Game._click(), 300); function findBestCloudDrop() { var bestBank = Game.cps_cur * 6000; var label = "Bank Level : "; var percentage = Math.round((Game.drops_in_bank / bestBank) * 10000) / 100; label = label.concat(Game.drops_in_bank.toExponential(3)," / ",bestBank.toExponential(3)); label = label.concat(" (",percentage.toString(), "%)"); $('#banklevellabel').text(label); setTimeout(function() { findBestCloudDrop();}, 3000); } findBestCloudDrop(); var cloudClick = setInterval(() => { if (Game.cloudvisible) Game._cloudclicked() }, 3000); function findBestValue() { var bestId = 0; var bestValue = 0; for (var i = 0; i < 14; i++) { if (Game.buildings[i]) { var fraction = Game.buildings[i].cost / Game.buildings[i].curproduction; if (!bestValue) { bestValue = fraction; bestId = i; } else if (fraction < bestValue) { bestValue = fraction; bestId = i; } } } $('#store-container button').css('background-color', 'rgb(197, 202, 233)'); $('#store-container button:eq(' + bestId + ')').css('background-color', 'rgb(150, 256, 256)'); setTimeout(function() { findBestValue(); }, 10000); } $('.building').on('click', function() {findBestValue()}) findBestValue();