fix farm numbers
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Grepolis Remote Control
|
// @name Grepolis Remote Control
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 3.5.7
|
// @version 3.5.8
|
||||||
// @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player)
|
// @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player)
|
||||||
// @author Dimitrios
|
// @author Dimitrios
|
||||||
// @match https://*.grepolis.com/game/*
|
// @match https://*.grepolis.com/game/*
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
if (farm.attributes.island_x !== ix || farm.attributes.island_y !== iy) return;
|
if (farm.attributes.island_x !== ix || farm.attributes.island_y !== iy) return;
|
||||||
relCollection.models.forEach(rel => {
|
relCollection.models.forEach(rel => {
|
||||||
if (rel.attributes.farm_town_id === farm.attributes.id &&
|
if (rel.attributes.farm_town_id === farm.attributes.id &&
|
||||||
rel.attributes.relation_status >= 0) {
|
rel.attributes.relation_status >= 1) {
|
||||||
farms.push({
|
farms.push({
|
||||||
farm_town_id: farm.attributes.id,
|
farm_town_id: farm.attributes.id,
|
||||||
farm_name: farm.attributes.name || '',
|
farm_name: farm.attributes.name || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user