Change likely typo in variable names to be consistent.
This commit is contained in:
parent
5f3962f39e
commit
8d2f4c0c3a
@ -34,19 +34,19 @@ window.plugin.portalHighligherPortalsCanMakeLevel.highlight = function(data,high
|
|||||||
|
|
||||||
//determines the level of poral a user can make all on their own
|
//determines the level of poral a user can make all on their own
|
||||||
window.plugin.portalHighligherPortalsCanMakeLevel.playerCanSoloLevel = function(lvl) {
|
window.plugin.portalHighligherPortalsCanMakeLevel.playerCanSoloLevel = function(lvl) {
|
||||||
var renators_total = 0;
|
var resonators_total = 0;
|
||||||
var renators_placed = 0;
|
var resonators_placed = 0;
|
||||||
var resonator_level = PLAYER.level
|
var resonator_level = PLAYER.level
|
||||||
while(renators_placed < 8) {
|
while(resonators_placed < 8) {
|
||||||
for(var i = 0; i<MAX_RESO_PER_PLAYER[resonator_level]; i++) {
|
for(var i = 0; i<MAX_RESO_PER_PLAYER[resonator_level]; i++) {
|
||||||
if(renators_placed < 8) {
|
if(resonators_placed < 8) {
|
||||||
renators_total += resonator_level;
|
resonators_total += resonator_level;
|
||||||
renators_placed++;
|
resonators_placed++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resonator_level--;
|
resonator_level--;
|
||||||
}
|
}
|
||||||
return(Math.floor(renators_total/8));
|
return(Math.floor(resonators_total/8));
|
||||||
}
|
}
|
||||||
window.plugin.portalHighligherPortalsCanMakeLevel.getHighlighter = function(lvl) {
|
window.plugin.portalHighligherPortalsCanMakeLevel.getHighlighter = function(lvl) {
|
||||||
return(function(data){
|
return(function(data){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user