-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Expected Behavior
download should be "orig" quality card when the card type equals "BATTLEGROUND_TRINKET".
like this:
https://art.hearthstonejson.com/v1/orig/BG30_MagicItem_843t.png
the trinkets card information like this:
{
"artist": "Gabriel Lopes",
"cardClass": "NEUTRAL",
"cost": 2,
"dbfId": 111448,
"id": "BG30_MagicItem_847",
["mechanics"](https://api.hearthstonejson.com/v1/latest/enUS/cards.json): [
"TRIGGER_VISUAL"
],
"name": "Goblin Wallet",
"set": "BATTLEGROUNDS",
"spellSchool": "LESSER_TRINKET",
"text": "At the end of each turn, increase your maximum Gold by 1.",
"type": "BATTLEGROUND_TRINKET"
}see more trinket cards from https://api.hearthstonejson.com/v1/latest/enUS/cards.json
in my plugin:
Database.GetCardFromDbfId(111448, false)Actual Behavior
current assetsDownloader's link like this:
https://art.hearthstonejson.com/v1/256x/BG30_MagicItem_843t.png
The 256x quality for the trinkets cannot be found actually.
Source code of HDT:
AssetDownloaders.cardImageDownloader = new AssetDownloader<Card, BitmapImage>(Path.Combine(Config.AppDataPath, "Images", "CardImages"), (Func<Card, string>) (card => "https://art.hearthstonejson.com/v1/" + (card.BaconCard ? "bgs" : "render") + "/latest/" + Helper.GetCardLanguage() + "/" + (Config.Instance.HighResolutionCardImages ? "512x" : "256x") + "/" + card.Id + (card.BaconTriple ? "_triple" : "") + ".png"), (Func<Card, string>) (card => card.Id + (card.BaconTriple ? "_triple" : "") + ".png"), new Func<byte[], BitmapImage>(Helper.BitmapImageFromBytes), new long?(200L), "pack://application:,,,/Resources/faceless_manipulator.png");log:
2:19:38|Error|AssetDownloader.DownloadFileAsync >> Failed to download BG30_MagicItem_423.png: NotFoundSteps to reproduce behavior
var cardFromDbfId = Database.GetCardFromDbfId(cardDbfId, false);
var CardImage = new CardImage();
Database.GetCardFromDbfId(111448, false);
CardImage.SetCardIdFromCard(cardFromDbfId);Log/Screenshots
No response