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:
Shawn Clark
2013-02-19 20:41:04 -08:00
parent 2396f34e7a
commit ba0ff06771
3 changed files with 44 additions and 26 deletions

View File

@ -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>';