Fix color resetting in plugins

Remove defaulting in highlighters, which isn't needed, and was setting
the wrong thing anyway.  Also a little new hightlighter
This commit is contained in:
vita10gy
2013-09-12 20:20:16 -05:00
parent e9d173402b
commit 7eaf196dee
5 changed files with 37 additions and 26 deletions

View File

@ -29,10 +29,7 @@ window.plugin.portalHighligherPortalsCanMakeLevel.highlight = function(data,high
if( potential_level > current_level && potential_level === highlight_level) {
color = 'red';
data.portal.setStyle({fillColor: color, fillOpacity: opacity});
} else {
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
fillOpacity: 0.5});
}
}
}
//determines the level of poral a user can make all on their own