Revert "[uniques] don't detect unique captures from portal details"
This reverts commit 65916de5789c26ab91cb8bc8d24cfc2a539845b4.
This commit is contained in:
parent
cd61e6e74f
commit
db9d456f2c
@ -51,6 +51,10 @@ 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) {
|
||||||
|
plugin.uniques.updateCaptured(true);
|
||||||
|
// no further logic required
|
||||||
|
} else {
|
||||||
function installedByPlayer(entity) {
|
function installedByPlayer(entity) {
|
||||||
return entity && entity.owner == nickname;
|
return entity && entity.owner == nickname;
|
||||||
}
|
}
|
||||||
@ -59,6 +63,7 @@ window.plugin.uniques.onPortalDetailsUpdated = function() {
|
|||||||
plugin.uniques.updateVisited(true);
|
plugin.uniques.updateVisited(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$('#portaldetails > .imgpreview').after(plugin.uniques.contentHTML);
|
$('#portaldetails > .imgpreview').after(plugin.uniques.contentHTML);
|
||||||
plugin.uniques.updateCheckedAndHighlight(guid);
|
plugin.uniques.updateCheckedAndHighlight(guid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user