fix 'captured' being set when it should have been 'visited' for link-related messages
fix crash when the selected portal is not in the map data (e.g. while loading), when the highlighter is selected
This commit is contained in:
parent
cc0802aa6d
commit
a28a0737e4
@ -110,7 +110,7 @@ window.plugin.uniques.onPublicChatDataAvailable = function(data) {
|
|||||||
&& markup[3][0] == 'TEXT'
|
&& markup[3][0] == 'TEXT'
|
||||||
&& markup[3][1].plain == ' to '
|
&& markup[3][1].plain == ' to '
|
||||||
&& markup[4][0] == 'PORTAL') {
|
&& markup[4][0] == 'PORTAL') {
|
||||||
plugin.uniques.setPortalCaptured(markup[2][1].guid);
|
plugin.uniques.setPortalVisited(markup[2][1].guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// search for "Your Lx Resonator on y was destroyed by z"
|
// search for "Your Lx Resonator on y was destroyed by z"
|
||||||
@ -151,9 +151,11 @@ window.plugin.uniques.updateChecked = function() {
|
|||||||
$('#visited').prop('checked', visited);
|
$('#visited').prop('checked', visited);
|
||||||
$('#captured').prop('checked', captured);
|
$('#captured').prop('checked', captured);
|
||||||
if (window.plugin.uniques.isHighlightActive) {
|
if (window.plugin.uniques.isHighlightActive) {
|
||||||
|
if (portals[guid]) {
|
||||||
plugin.uniques.highlight({portal: portals[guid]});
|
plugin.uniques.highlight({portal: portals[guid]});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.plugin.uniques.setPortalVisited = function(guid) {
|
window.plugin.uniques.setPortalVisited = function(guid) {
|
||||||
var uniqueInfo = plugin.uniques.uniques[guid];
|
var uniqueInfo = plugin.uniques.uniques[guid];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user