Update set symbols

This commit is contained in:
Josh Birnholz
2022-11-24 21:37:24 -05:00
committed by Josh birnholz
parent dc61d96058
commit d8ccab92cc
10 changed files with 3 additions and 1 deletions

View File

@@ -1578,7 +1578,9 @@ function fetchSetSymbol() {
localStorage.setItem('lockSetSymbolCode', setCode);
}
var setRarity = document.querySelector('#set-symbol-rarity').value.toLowerCase().replace('uncommon', 'u').replace('common', 'c').replace('rare', 'r').replace('mythic', 'm') || 'c';
if (['cc', 'logan', 'joe'].includes(setCode.toLowerCase())) {
if (['sld'].includes(setCode.toLowerCase())) {
uploadSetSymbol(fixUri(`/img/setSymbols/custom/${setCode.toLowerCase()}-${setRarity}.png`), 'resetSetSymbol');
} else if (['cc', 'logan', 'joe'].includes(setCode.toLowerCase())) {
uploadSetSymbol(fixUri(`/img/setSymbols/custom/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol');
} else {
if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase());