update mv mapping (#4896)
This commit is contained in:
parent
9776ea53c9
commit
94e39c044c
1 changed files with 3 additions and 3 deletions
|
@ -189,7 +189,7 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet,
|
|||
{
|
||||
// mtgjson name => xml name
|
||||
static const QMap<QString, QString> cardProperties{
|
||||
{"manaCost", "manacost"}, {"convertedManaCost", "cmc"}, {"type", "type"},
|
||||
{"manaCost", "manacost"}, {"manaValue", "cmc"}, {"type", "type"},
|
||||
{"loyalty", "loyalty"}, {"layout", "layout"}, {"side", "side"},
|
||||
};
|
||||
|
||||
|
@ -365,7 +365,7 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet,
|
|||
|
||||
// add other face for split cards as card relation
|
||||
if (!getStringPropertyFromMap(card, "side").isEmpty()) {
|
||||
properties["cmc"] = getStringPropertyFromMap(card, "faceConvertedManaCost");
|
||||
properties["cmc"] = getStringPropertyFromMap(card, "faceManaValue");
|
||||
if (layout == "meld") { // meld cards don't work
|
||||
static const QRegularExpression meldNameRegex{"then meld them into ([^\\.]*)"};
|
||||
QString additionalName = meldNameRegex.match(text).captured(1);
|
||||
|
|
Loading…
Reference in a new issue