plugin: fix level guessing from portal details, and opening the guessed player dialog
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-guess-player-levels@breunigs
|
// @id iitc-plugin-guess-player-levels@breunigs
|
||||||
// @name IITC plugin: guess player level
|
// @name IITC plugin: guess player level
|
||||||
// @category Info
|
// @category Info
|
||||||
// @version 0.5.4.@@DATETIMEVERSION@@
|
// @version 0.5.5.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -121,9 +121,9 @@ window.plugin.guessPlayerLevels.setupChatNickHelper = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.guessPlayerLevels.extractPortalData = function(data) {
|
window.plugin.guessPlayerLevels.extractPortalData = function(data) {
|
||||||
if(!data.success || !data.details.portalV2) return;
|
if(!data.success) return;
|
||||||
|
|
||||||
var r = data.details.resonatorArray.resonators;
|
var r = data.details.resonators;
|
||||||
|
|
||||||
/* Due to the Jarvis Virus/ADA Refactor it's possible for a player to own resonators on a portal at a higher level
|
/* Due to the Jarvis Virus/ADA Refactor it's possible for a player to own resonators on a portal at a higher level
|
||||||
than the player themselves. It is not possible to detect for sure when this has happened, but in many cases it will
|
than the player themselves. It is not possible to detect for sure when this has happened, but in many cases it will
|
||||||
@ -419,7 +419,7 @@ window.plugin.guessPlayerLevels.guess = function() {
|
|||||||
$.each(window.portals, function(guid,p) {
|
$.each(window.portals, function(guid,p) {
|
||||||
var details = portalDetail.get(guid);
|
var details = portalDetail.get(guid);
|
||||||
if(details) {
|
if(details) {
|
||||||
var r = details.resonatorArray.resonators;
|
var r = details.resonators;
|
||||||
$.each(r, function(ind, reso) {
|
$.each(r, function(ind, reso) {
|
||||||
if(!reso) return true;
|
if(!reso) return true;
|
||||||
var nick = reso.owner;
|
var nick = reso.owner;
|
||||||
|
Reference in New Issue
Block a user