Merge pull request #354 from Xosofox/patch-1

Required update to work with latest version of IPAS
This commit is contained in:
Jon Atkins 2013-06-06 17:41:19 -07:00
commit 468665f8d6

View File

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