more work on fixing things for the 2014-05-23 changes

it's a big job - much is still broken
This commit is contained in:
Jon Atkins
2014-05-23 23:50:37 +01:00
parent 589fd83b93
commit b595af30ad
11 changed files with 89 additions and 271 deletions

View File

@ -2,7 +2,7 @@
// @id iitc-plugin-ipas-link@graphracer
// @name IITC Plugin: simulate an attack on portal
// @category Portal Info
// @version 0.2.1.@@DATETIMEVERSION@@
// @version 0.2.2.@@DATETIMEVERSION@@
// @namespace https://github.com/xosofox/IPAS
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
@ -35,14 +35,14 @@ window.plugin.ipasLink.getHash = function (p) {
var hashParts = [];
$.each(details.resonatorArray.resonators, function (ind, reso) {
if (reso)
hashParts.push(reso.level + "," + reso.distanceToPortal + "," + reso.energyTotal);
hashParts.push(reso.level + ",-1," + reso.energyTotal);
else
hashParts.push("1,20,0");
});
var resos = hashParts.join(";");
hashParts = [];
$.each(details.portalV2.linkedModArray, function (ind, mod) {
$.each(details.mods, function (ind, mod) {
// s - shields
// h - heat sink
// i - intentionally left in