move portal entity array decoding into one place, and share the code for the common array elements
TODO: move link and field entities into here too
This commit is contained in:
@ -295,20 +295,7 @@ window.Render.prototype.createPortalEntity = function(ent) {
|
||||
|
||||
var latlng = L.latLng(ent[2][2]/1E6, ent[2][3]/1E6);
|
||||
|
||||
var data = {
|
||||
// ent[2][0] is type - not needed as we know we're a portal
|
||||
team: ent[2][1],
|
||||
latE6: ent[2][2],
|
||||
lngE6: ent[2][3],
|
||||
level: ent[2][4],
|
||||
health: ent[2][5],
|
||||
resCount: ent[2][6],
|
||||
image: ent[2][7],
|
||||
title: ent[2][8],
|
||||
ornaments: ent[2][9],
|
||||
mission: ent[2][10],
|
||||
mission50plus: ent[2][11],
|
||||
};
|
||||
var data = decodeArray.portalSummary(ent[2]);
|
||||
|
||||
var dataOptions = {
|
||||
level: portalLevel,
|
||||
|
Reference in New Issue
Block a user