Add "!" to old shields
Show old shields on portals with exclamation mark. The old series of shields had mitigation values of 6, 8 and 10 (now it's 10, 20 and 30).
This commit is contained in:
parent
9f9b257e85
commit
ccdf680864
@ -137,6 +137,11 @@ window.plugin.portalslist.getPortals = function() {
|
||||
if (modShortName === '') {
|
||||
mods[ind] = ['', '', ''];
|
||||
} else {
|
||||
if ((modShortName === 'S') &&
|
||||
((mod.rarity=='COMMON' && mod.stats.MITIGATION == 6) ||
|
||||
(mod.rarity=='RARE' && mod.stats.MITIGATION == 8) ||
|
||||
(mod.rarity=='VERY_RARE' && mod.stats.MITIGATION == 10)))
|
||||
modShortName=modShortName+'!';
|
||||
mods[ind] = [mod.rarity, getPlayerName(mod.installingUser), modShortName, mod.displayName];
|
||||
}
|
||||
}else { mods[ind] = ['', '', '']; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user