From 26d410d306ae16b84fdb26f2eb4ca686a979bd71 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 2 Dec 2013 17:53:57 +0000 Subject: [PATCH] comment concerning issues with AP gain calculations - relevant to #671 --- code/portal_info.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/portal_info.js b/code/portal_info.js index 56c47c23..d8be6198 100644 --- a/code/portal_info.js +++ b/code/portal_info.js @@ -123,6 +123,9 @@ window.getAttackApGain = function(d) { }); 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 resoAp = resoCount * DESTROY_RESONATOR;