diff --git a/grepolis.user.js b/grepolis.user.js index e8e83c3..698e24d 100644 --- a/grepolis.user.js +++ b/grepolis.user.js @@ -10,7 +10,7 @@ // // @match http://*.grepolis.com/game/* // -// @version 1.1.48 +// @version 1.1.49 // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // ==/UserScript== @@ -98,7 +98,7 @@ }); $(town_countdown).append('
'); } - }, townCount * 5000); + }, townCount * 3000); $("#gpwnd_" + logGPWindow.getID()).parent().parent().find(".ui-dialog-titlebar").empty().append("" + GM_info.script.version); var choose = $("#choosefarmduration")[0]; @@ -108,22 +108,22 @@ }, 15000); function getFarmsFor(xTownId, xTownCount) { - setTimeout(function() { - console.log("get farms for town " + xTownId); - HelperTown.townSwitch(xTownId); - setTimeout(function() { + setTimeout( + function() { + console.log(xTownCount + ") get farms for town " + xTownId); + HelperTown.townSwitch(xTownId); HelperTown.handleInfoWindowJumpToTownClick(); - setTimeout(function() { - console.log("getting farms for town " + xTownId); - var farmtowns = $(".farmtown_owned_on_same_island"); - $.each(farmtowns, function(f, farmtown) { - var farmtownId = farmtown["id"].split("_")[2]; - console.log("got farm " + farmtownId + " for town " + xTownId); - farm_ids[xTownId].push(+farmtownId); - }); - }, 1800); - }, 1800); - }, xTownCount*4000); + setTimeout( + function() { + console.log("getting farms for town " + xTownId); + var farmtowns = $(".farmtown_owned_on_same_island"); + $.each(farmtowns, function(f, farmtown) { + var farmtownId = farmtown["id"].split("_")[2]; + console.log("got farm " + farmtownId + " for town " + xTownId); + farm_ids[xTownId].push(+farmtownId); + }); + }, 1800); + }, xTownCount*2200); } function log(xText) {