/ ‘grepolis.user.js’

This commit is contained in:
Jan Bader 2014-08-07 21:40:54 +02:00
parent b5ee4cdeda
commit 1f057184b6

View File

@ -10,7 +10,7 @@
//
// @match http://*.grepolis.com/game/*
//
// @version 1.1.42
// @version 1.1.43
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
// ==/UserScript==
@ -83,11 +83,12 @@
HelperTown.townSwitch(town_id);
HelperTown.handleInfoWindowJumpToTownClick();
townCount++;
var town_id_c = town_id;
setTimeout(function() {
var farmtowns = $(".farmtown_owned_on_same_island");
$.each(farmtowns, function(f, farmtown) {
var farmtownId = farmtown["id"].split("_")[2];
farm_ids[town_id].push(+farmtownId);
farm_ids[town_id_c].push(+farmtownId);
});
}, townCount*2000);
}