Merge pull request #354 from Xosofox/patch-1
Required update to work with latest version of IPAS
This commit is contained in:
commit
468665f8d6
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user