Support flavorName in PrintingInfo and cache the altNames in CardInfo (#6335)

* Support flavorName property and cache altNames

* update oracleimporter

* update cards.xsd
This commit is contained in:
RickyRister 2025-11-20 05:54:23 -08:00 committed by GitHub
parent ab5d6db8a2
commit c46f6d1178
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 72 additions and 9 deletions

View file

@ -293,6 +293,13 @@ int OracleImporter::importCardsFromSet(const CardSetPtr &currentSet, const QList
printingInfo.setProperty(xmlPropertyName, propertyValue);
}
// handle flavorNames specially due to double-faced cards
QString faceFlavorName = getStringPropertyFromMap(card, "faceFlavorName");
QString flavorName = !faceFlavorName.isEmpty() ? faceFlavorName : getStringPropertyFromMap(card, "flavorName");
if (!flavorName.isEmpty()) {
printingInfo.setProperty("flavorName", flavorName);
}
// Identifiers
for (auto i = identifierProperties.cbegin(), end = identifierProperties.cend(); i != end; ++i) {
QString mtgjsonProperty = i.key();