Add a little contrast in fainted pokemon icons

This should be a slight change to make it slightly easier to identify
which Pokémon a fainted Pokémon is, while still making them easily
distinguishable from unrevealed Pokémon in VGC.
This commit is contained in:
Guangcong Luo 2019-02-11 15:12:13 -06:00
parent 48eb1aad76
commit 9b7f3f8a4c

View File

@ -605,7 +605,7 @@ const Dex = {
let top = Math.floor(num / 12) * 30;
let left = (num % 12) * 40;
let fainted = (pokemon && pokemon.fainted ? ';opacity:.7;filter:contrast(0)' : '');
let fainted = (pokemon && pokemon.fainted ? ';opacity:.3;filter:grayscale(100%) brightness(.5)' : '');
return 'background:transparent url(' + Dex.resourcePrefix + 'sprites/smicons-sheet.png?a5) no-repeat scroll -' + left + 'px -' + top + 'px' + fainted;
},