remove debug console.log

add comments about possible future improvements
This commit is contained in:
Jon Atkins 2013-09-04 04:30:10 +01:00
parent 76509f6b1f
commit fce9f8e0bc

View File

@ -77,6 +77,10 @@ window.plugin.guessPlayerLevels.extractPortalData = function(data) {
//(over 1 L8/7 res, over 2 L6/5 res, etc). if we detect this case, ignore all resonators owned //(over 1 L8/7 res, over 2 L6/5 res, etc). if we detect this case, ignore all resonators owned
//by that player on the portal //by that player on the portal
// TODO? go further, and just ignore all resonators owned by the portal owner?
// or; have a 'guessed' level and a 'certain' level. 'certain' comes from res from non-owner, and COMM deploy
// while 'guessed' comes from resonators of the portal owner
var perPlayerResMaxLevel = {}; var perPlayerResMaxLevel = {};
var perPlayerResMaxLevelCount = {}; var perPlayerResMaxLevelCount = {};
@ -95,8 +99,6 @@ window.plugin.guessPlayerLevels.extractPortalData = function(data) {
var p = 'level-'+guid; var p = 'level-'+guid;
if(!window.localStorage[p] || window.localStorage[p] < level) if(!window.localStorage[p] || window.localStorage[p] < level)
window.localStorage[p] = level; window.localStorage[p] = level;
} else {
console.log('player guid '+guid+' has '+perPlayerResMaxLevelCount[guid]+' level '+level+' res on one portal - ignoring (ada refactor/jarvis virus)');
} }
}); });
} }