/ ‘grepolis.user.js’

This commit is contained in:
Jan Bader 2014-06-06 22:51:39 +02:00
parent c87d2769bd
commit e37b07ae05

View File

@ -10,7 +10,7 @@
//
// @match http://*.grepolis.com/game/*
//
// @version 1.0.52
// @version 1.0.53
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
// ==/UserScript==
@ -105,7 +105,8 @@
var loots = $(wndElement).find("#farmtown_loot").children().last().text().split('/');
var loot_current = parseFloat(loots[0]);
var loot_maximum = parseFloat(loots[1]);
if(loot_current + 24*3 > loot_maximum) {
var count_per_loot = parseFloat($(wndElement).find(".farm_claim_res0").text());
if(loot_current + count_per_loot*3 > loot_maximum) {
log("Wait 15:00 for Farm " + xFarmId + " to reset");
wnd.close();