/ ‘grepolis.user.js’

This commit is contained in:
Jan Bader 2014-07-27 18:20:14 +02:00
parent 0808325e83
commit 9339efb2b7

View File

@ -10,7 +10,7 @@
// //
// @match http://*.grepolis.com/game/* // @match http://*.grepolis.com/game/*
// //
// @version 1.1.34 // @version 1.1.35
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js // @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
// ==/UserScript== // ==/UserScript==
@ -32,21 +32,12 @@
// Insel 2 // Insel 2
74298: [19577, 19579, 19583, 19584, 19582, 19581, 19580], 74298: [19577, 19579, 19583, 19584, 19582, 19581, 19580],
} }
towns = {
83792: "0x00",
84064: "0x01",
85523: "0x10",
74298: "0x20"
}
break; break;
case "de67": case "de67":
farm_ids = { farm_ids = {
// Insel 0 // Insel 0
4809: [1510, 1509, 1508, 1505, 1507, 1511], 4809: [1510, 1509, 1508, 1505, 1507, 1511],
} }
towns = {
4809: "0x00",
}
break; break;
} }
@ -88,7 +79,7 @@
for(var town_id in farm_ids) { for(var town_id in farm_ids) {
var town_countdown = document.createElement("span"); var town_countdown = document.createElement("span");
town_countdown.textContent = "" + towns[town_id] + ":"; town_countdown.textContent = "" + ITowns.getTown(town_id).name + ":";
timerWindow.append(town_countdown); timerWindow.append(town_countdown);
farm_ids[town_id].forEach(function(xFarmId) { farm_ids[town_id].forEach(function(xFarmId) {
var tmout = 20000 + rand(10); var tmout = 20000 + rand(10);