include the index 10 portal data value as unknown_10 until we know what it's used for
This commit is contained in:
parent
3aed769081
commit
b22842a902
@ -235,7 +235,7 @@ window.Render.prototype.createPortalEntity = function(ent) {
|
|||||||
var latlng = L.latLng(ent[2][2]/1E6, ent[2][3]/1E6);
|
var latlng = L.latLng(ent[2][2]/1E6, ent[2][3]/1E6);
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
// type: ent[2][0],
|
// ent[2][0] is type - not needed as we know we're a portal
|
||||||
team: ent[2][1],
|
team: ent[2][1],
|
||||||
latE6: ent[2][2],
|
latE6: ent[2][2],
|
||||||
lngE6: ent[2][3],
|
lngE6: ent[2][3],
|
||||||
@ -244,8 +244,8 @@ window.Render.prototype.createPortalEntity = function(ent) {
|
|||||||
resCount: ent[2][6],
|
resCount: ent[2][6],
|
||||||
image: ent[2][7],
|
image: ent[2][7],
|
||||||
title: ent[2][8],
|
title: ent[2][8],
|
||||||
ornaments: ent[2][9]
|
ornaments: ent[2][9],
|
||||||
// and a new ent[2][10] ??? - maybe mission markers for portals?
|
unknown_10: ent[2][10], // temp name until we know what this value does
|
||||||
};
|
};
|
||||||
|
|
||||||
var dataOptions = {
|
var dataOptions = {
|
||||||
|
@ -57,7 +57,7 @@ var handleResponse = function(guid, data, success) {
|
|||||||
if (success) {
|
if (success) {
|
||||||
var dict = {
|
var dict = {
|
||||||
// raw: data.result,
|
// raw: data.result,
|
||||||
type: data.result[0],
|
// result[0] is type - not needed (always a portal!)
|
||||||
team: data.result[1],
|
team: data.result[1],
|
||||||
latE6: data.result[2],
|
latE6: data.result[2],
|
||||||
lngE6: data.result[3],
|
lngE6: data.result[3],
|
||||||
@ -67,7 +67,7 @@ var handleResponse = function(guid, data, success) {
|
|||||||
image: data.result[7],
|
image: data.result[7],
|
||||||
title: data.result[8],
|
title: data.result[8],
|
||||||
ornaments: data.result[9],
|
ornaments: data.result[9],
|
||||||
// what's [10]?
|
unknown_10: data.result[10], // temp name until we know what this value does
|
||||||
mods: data.result[11].map(parseMod),
|
mods: data.result[11].map(parseMod),
|
||||||
resonators:data.result[12].map(parseResonator),
|
resonators:data.result[12].map(parseResonator),
|
||||||
owner: data.result[13],
|
owner: data.result[13],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user