Used TEAM_RES and TEAM_ENL constants, rather than magic numbers.

This commit is contained in:
Catherine Taylor 2013-09-05 16:20:42 +01:00
parent 8889c4a128
commit 61ecfc1c2d

View File

@ -27,9 +27,9 @@ window.plugin.portalHighlighterOutboundLinkCounter.highlight = function(data) {
var playerFaction = 0; var playerFaction = 0;
if (window.PLAYER.team === 'RESISTANCE') { if (window.PLAYER.team === 'RESISTANCE') {
playerFaction = 1; playerFaction = window.TEAM_RES;
} else { } else {
playerFaction = 2; playerFaction = window.TEAM_ENL;
} }
// Only interested in portals of player's faction // Only interested in portals of player's faction