[uniques] don't detect unique captures from portal details
(Viruses don't count for uniques)
This commit is contained in:
parent
259c996fa2
commit
65916de578
@ -51,17 +51,12 @@ window.plugin.uniques.onPortalDetailsUpdated = function() {
|
|||||||
details = portalDetail.get(guid),
|
details = portalDetail.get(guid),
|
||||||
nickname = window.PLAYER.nickname;
|
nickname = window.PLAYER.nickname;
|
||||||
if(details) {
|
if(details) {
|
||||||
if(details.owner == nickname) {
|
function installedByPlayer(entity) {
|
||||||
plugin.uniques.updateCaptured(true);
|
return entity && entity.owner == nickname;
|
||||||
// no further logic required
|
}
|
||||||
} else {
|
|
||||||
function installedByPlayer(entity) {
|
if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) {
|
||||||
return entity && entity.owner == nickname;
|
plugin.uniques.updateVisited(true);
|
||||||
}
|
|
||||||
|
|
||||||
if(details.resonators.some(installedByPlayer) || details.mods.some(installedByPlayer)) {
|
|
||||||
plugin.uniques.updateVisited(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user