From b029da632f99b5170c86a776416f04512e3e288d Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 4 Feb 2015 14:51:36 +0000 Subject: [PATCH] portal mod stats: convert the new large removal stickiness values to a percentage. there's no confirmation from Niantic this is what it means, and unlikely to ever be any exapanation, but it folows the convention used for other high value mod stats low values (<=100) are displayed as-is, for existing portals. it's unknown how the backend servers actually handle a mix of old and new mods --- code/portal_detail_display_tools.js | 1 + 1 file changed, 1 insertion(+) diff --git a/code/portal_detail_display_tools.js b/code/portal_detail_display_tools.js index a3b54050..abd54a50 100644 --- a/code/portal_detail_display_tools.js +++ b/code/portal_detail_display_tools.js @@ -115,6 +115,7 @@ window.getModDetails = function(d) { else if (key === 'ATTACK_FREQUENCY') val = (val/1000) +'x'; // 2000 = 2x else if (key === 'FORCE_AMPLIFIER') val = (val/1000) +'x'; // 2000 = 2x else if (key === 'LINK_RANGE_MULTIPLIER') val = (val/1000) +'x'; // 2000 = 2x + else if (key === 'REMOVAL_STICKINESS' && val > 100) val = (val/10000)+'%'; // an educated guess // else display unmodified. correct for shield mitigation and multihack - unknown for future/other mods modTooltip += '\n+' + val + ' ' + key.capitalize().replace(/_/g,' ');