Used TEAM_RES and TEAM_ENL constants, rather than magic numbers.
This commit is contained in:
parent
8889c4a128
commit
61ecfc1c2d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user