From 61ecfc1c2d77f5552784c0b0ee1ebbaa87ad391e Mon Sep 17 00:00:00 2001 From: Catherine Taylor Date: Thu, 5 Sep 2013 16:20:42 +0100 Subject: [PATCH] Used TEAM_RES and TEAM_ENL constants, rather than magic numbers. --- plugins/portal-highlighter-outbound-link-counter.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/portal-highlighter-outbound-link-counter.user.js b/plugins/portal-highlighter-outbound-link-counter.user.js index 5ec60ff0..ce754661 100644 --- a/plugins/portal-highlighter-outbound-link-counter.user.js +++ b/plugins/portal-highlighter-outbound-link-counter.user.js @@ -27,9 +27,9 @@ window.plugin.portalHighlighterOutboundLinkCounter.highlight = function(data) { var playerFaction = 0; if (window.PLAYER.team === 'RESISTANCE') { - playerFaction = 1; + playerFaction = window.TEAM_RES; } else { - playerFaction = 2; + playerFaction = window.TEAM_ENL; } // Only interested in portals of player's faction