mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 07:40:30 -08:00
update mv mapping (#4896)
This commit is contained in:
@@ -189,7 +189,7 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet,
|
|||||||
{
|
{
|
||||||
// mtgjson name => xml name
|
// mtgjson name => xml name
|
||||||
static const QMap<QString, QString> cardProperties{
|
static const QMap<QString, QString> cardProperties{
|
||||||
{"manaCost", "manacost"}, {"convertedManaCost", "cmc"}, {"type", "type"},
|
{"manaCost", "manacost"}, {"manaValue", "cmc"}, {"type", "type"},
|
||||||
{"loyalty", "loyalty"}, {"layout", "layout"}, {"side", "side"},
|
{"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
|
// add other face for split cards as card relation
|
||||||
if (!getStringPropertyFromMap(card, "side").isEmpty()) {
|
if (!getStringPropertyFromMap(card, "side").isEmpty()) {
|
||||||
properties["cmc"] = getStringPropertyFromMap(card, "faceConvertedManaCost");
|
properties["cmc"] = getStringPropertyFromMap(card, "faceManaValue");
|
||||||
if (layout == "meld") { // meld cards don't work
|
if (layout == "meld") { // meld cards don't work
|
||||||
static const QRegularExpression meldNameRegex{"then meld them into ([^\\.]*)"};
|
static const QRegularExpression meldNameRegex{"then meld them into ([^\\.]*)"};
|
||||||
QString additionalName = meldNameRegex.match(text).captured(1);
|
QString additionalName = meldNameRegex.match(text).captured(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user