Add Alchemy set symbols

This commit is contained in:
Josh Birnholz
2022-12-01 16:01:18 -05:00
committed by Josh birnholz
parent 8df4ac2d61
commit e7a3ff4d41
9 changed files with 1 additions and 1 deletions

View File

@@ -2809,7 +2809,7 @@ 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 (['sld'].includes(setCode.toLowerCase())) {
if (['sld', 'a22', 'a23'].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');