Required update to work with latest version of IPAS

Adjustments in passing of the shields, to comply with "old" and "new" shields
This commit is contained in:
Peter Dietrich 2013-06-07 03:33:37 +03:00
parent 28c124b020
commit 05903c90db

View File

@ -45,10 +45,18 @@ window.plugin.ipasLink.getHash = function (d) {
hashParts = [];
$.each(d.portalV2.linkedModArray, function (ind, mod) {
//shields only, so far...
var modCodes={
c: "cs",
r: "rs",
v: "vrs"
};
var s = "0";
if (mod) {
if (mod.type === "RES_SHIELD") {
s = mod.rarity.charAt(0).toLowerCase();
s=modCodes[s];
s = s + mod.stats.MITIGATION;
}
}
hashParts.push(s);