From ccdf680864e6d7bdaeb725a71d470211775e4f4f Mon Sep 17 00:00:00 2001 From: Peter Sorger Date: Tue, 23 Jul 2013 16:07:59 +0200 Subject: [PATCH] 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). --- plugins/portals-list.user.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/portals-list.user.js b/plugins/portals-list.user.js index fc8bdd2a..b5e90d8c 100644 --- a/plugins/portals-list.user.js +++ b/plugins/portals-list.user.js @@ -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] = ['', '', '']; }