mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Use PNGs for ONE/ONC set symbols
This commit is contained in:
@@ -3134,8 +3134,12 @@ function fetchSetSymbol() {
|
||||
if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase());
|
||||
uploadSetSymbol('http://gatherer.wizards.com/Handlers/Image.ashx?type=symbol&set=' + setCode + '&size=large&rarity=' + setRarity, 'resetSetSymbol');
|
||||
} else {
|
||||
var extension = 'svg';
|
||||
if (['one', 'onc'].includes(setCode.toLowerCase())) {
|
||||
extension = 'png';
|
||||
}
|
||||
if (setSymbolAliases.has(setCode.toLowerCase())) setCode = setSymbolAliases.get(setCode.toLowerCase());
|
||||
uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.svg`), 'resetSetSymbol');
|
||||
uploadSetSymbol(fixUri(`/img/setSymbols/official/${setCode.toLowerCase()}-${setRarity}.` + extension), 'resetSetSymbol');
|
||||
}
|
||||
}
|
||||
function lockSetSymbolCode() {
|
||||
|
Reference in New Issue
Block a user