fix several issues
- resonator energy - portal owner & capture date - mod type filtering code
This commit is contained in:
@ -110,11 +110,11 @@ window.getModDetails = function(d) {
|
||||
// if (key === 'REMOVAL_STICKINESS' && val == 0) continue; // stat on all mods recently - unknown meaning, not displayed in stock client
|
||||
|
||||
// special formatting for known mod stats, where the display of the raw value is less useful
|
||||
if (mod.type === 'HEATSINK' && key === 'HACK_SPEED') val = (val/10000)+'%'; // 500000 = 50%
|
||||
else if (mod.type === 'FORCE_AMP' && key === 'FORCE_AMPLIFIER') val = (val/1000)+'x'; // 2000 = 2x
|
||||
else if (mod.type === 'LINK_AMPLIFIER' && key === 'LINK_RANGE_MULTIPLIER') val = (val/1000)+'x' // 2000 = 2x
|
||||
else if (mod.type === 'TURRET' && key === 'HIT_BONUS') val = (val/10000)+'%'; // 2000 = 0.2% (although this seems pretty small to be useful?)
|
||||
else if (mod.type === 'TURRET' && key === 'ATTACK_FREQUENCY') val = (val/1000)+'x' // 2000 = 2x
|
||||
if (key === 'HACK_SPEED') val = (val/10000)+'%'; // 500000 = 50%
|
||||
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 === 'HIT_BONUS') val = (val/10000)+'%'; // 2000 = 0.2% (although this seems pretty small to be useful?)
|
||||
else if (key === 'ATTACK_FREQUENCY') val = (val/1000)+'x' // 2000 = 2x
|
||||
// else display unmodified. correct for shield mitigation and multihack - unknown for future/other mods
|
||||
|
||||
modTooltip += '\n+' + val + ' ' + key.capitalize().replace(/_/g,' ');
|
||||
@ -169,7 +169,7 @@ window.getResonatorDetails = function(d) {
|
||||
}
|
||||
|
||||
var l = parseInt(reso.level);
|
||||
var v = parseInt(reso.energyTotal);
|
||||
var v = parseInt(reso.energy);
|
||||
var nick = reso.owner;
|
||||
// if array order and slot order drift apart, at least the octant
|
||||
// naming will still be correct.
|
||||
@ -218,8 +218,8 @@ window.renderResonatorDetails = function(slot, level, nrg, dist, nick) {
|
||||
}
|
||||
|
||||
// calculate AP gain from destroying portal and then capturing it by deploying resonators
|
||||
window.getAttackApGainText = function(d,fieldCount) {
|
||||
var breakdown = getAttackApGain(d,fieldCount);
|
||||
window.getAttackApGainText = function(d,fieldCount,linkCount) {
|
||||
var breakdown = getAttackApGain(d,fieldCount,linkCount);
|
||||
var totalGain = breakdown.enemyAp;
|
||||
|
||||
function tt(text) {
|
||||
|
Reference in New Issue
Block a user