Refactored getDestroyAP
- Split the calculations into getAttackApGain. Allows for other functions to get the AP data. - Renamed to getAttackApGainText as it isn't just destroying it is also capturing. Originally the method only calculated the destroy values.
This commit is contained in:
@ -34,7 +34,7 @@ window.renderPortalDetails = function(guid) {
|
||||
// collect and html-ify random data
|
||||
var randDetails = [
|
||||
playerText, sinceText, getRangeText(d), getEnergyText(d),
|
||||
linksText, getAvgResoDistText(d), linkedFields, getDestroyAP(d)
|
||||
linksText, getAvgResoDistText(d), linkedFields, getAttackApGainText(d)
|
||||
];
|
||||
randDetails = '<table id="randdetails">' + genFourColumnTable(randDetails) + '</table>';
|
||||
|
||||
|
Reference in New Issue
Block a user