mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
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:
parent
48eb1aad76
commit
9b7f3f8a4c
|
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user