From fc22bd83656f030d4a1304f6ee2fb363d4f6818a Mon Sep 17 00:00:00 2001 From: vita10gy Date: Sun, 7 Apr 2013 02:04:29 -0500 Subject: [PATCH] You can upgrade beyond your level --- plugins/portal-highlighter-portals-upgrade.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/portal-highlighter-portals-upgrade.user.js b/plugins/portal-highlighter-portals-upgrade.user.js index 1c8e1ebe..daa4a7b4 100644 --- a/plugins/portal-highlighter-portals-upgrade.user.js +++ b/plugins/portal-highlighter-portals-upgrade.user.js @@ -5,7 +5,7 @@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ -// @description [@@BUILDNAME@@-@@BUILDDATE@@] Uses the fill color of the portals to highlight portals you can upgrade. Yellow means you can upgrade it at all. Orange means you can change the level. Red means you can make it your level. +// @description [@@BUILDNAME@@-@@BUILDDATE@@] Uses the fill color of the portals to highlight portals you can upgrade. Yellow means you can upgrade it at all. Orange means you can change the level. Red means you can make it your level or higher. // @include https://www.ingress.com/intel* // @include http://www.ingress.com/intel* // @match https://www.ingress.com/intel* @@ -79,7 +79,7 @@ window.plugin.portalHighligherPortalsUpgrade.highlight = function(data) { var color = 'yellow'; if(potential_level > current_level) { color = 'orange'; - if(potential_level == player_level) { + if(potential_level >= player_level) { color = 'red'; } }