comment concerning issues with AP gain calculations - relevant to #671

This commit is contained in:
Jon Atkins 2013-12-02 17:53:57 +00:00
parent eadc044712
commit 26d410d306

View File

@ -123,6 +123,9 @@ window.getAttackApGain = function(d) {
}); });
var linkCount = d.portalV2.linkedEdges ? d.portalV2.linkedEdges.length : 0; var linkCount = d.portalV2.linkedEdges ? d.portalV2.linkedEdges.length : 0;
//FIXME: portalV2.linkedFields was never a piece of data from the server - it was something faked in IITC
//with the portal guid, window.getPortalFields will return the count of linked fields - but no guid passed into here
var fieldCount = d.portalV2.linkedFields ? d.portalV2.linkedFields.length : 0; var fieldCount = d.portalV2.linkedFields ? d.portalV2.linkedFields.length : 0;
var resoAp = resoCount * DESTROY_RESONATOR; var resoAp = resoCount * DESTROY_RESONATOR;