diff --git a/code/portal_detail_display_tools.js b/code/portal_detail_display_tools.js index 6fd989b2..446f141f 100644 --- a/code/portal_detail_display_tools.js +++ b/code/portal_detail_display_tools.js @@ -111,7 +111,7 @@ window.getResonatorDetails = function(d) { // rotates clockwise. So, last one is 7 (southeast). window.renderResonatorDetails = function(slot, level, nrg, dist, nick) { if(level === 0) { - var meter = ''; + var meter = ''; } else { var max = RESO_NRG[level]; var fillGrade = nrg/max*100; @@ -120,7 +120,7 @@ window.renderResonatorDetails = function(slot, level, nrg, dist, nick) { + 'level:\t' + level + '\n' + 'distance:\t' + dist + 'm\n' + 'owner:\t' + nick + '\n' - + 'octant:\t' + OCTANTS[slot]; + + 'octant:\t' + OCTANTS[slot] + ' ' + OCTANTS_ARROW[slot]; var style = 'width:'+fillGrade+'%; background:'+COLORS_LVL[level]+';'; diff --git a/main.js b/main.js index 1416fe94..217daa77 100644 --- a/main.js +++ b/main.js @@ -199,6 +199,7 @@ window.MAX_XM_PER_LEVEL = [0, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000]; window.MIN_AP_FOR_LEVEL = [0, 10000, 30000, 70000, 150000, 300000, 600000, 1200000]; window.HACK_RANGE = 40; // in meters, max. distance from portal to be able to access it window.OCTANTS = ['E', 'NE', 'N', 'NW', 'W', 'SW', 'S', 'SE']; +window.OCTANTS_ARROW = ['→', '↗', '↑', '↖', '←', '↙', '↓', '↘']; window.DESTROY_RESONATOR = 75; //AP for destroying portal window.DESTROY_LINK = 187; //AP for destroying link window.DESTROY_FIELD = 750; //AP for destroying field