mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
format
This commit is contained in:
parent
98ecad9cc5
commit
e3dab108f4
1 changed files with 6 additions and 6 deletions
|
|
@ -150,12 +150,12 @@ int InnerDecklistNode::readElement(QXmlStreamReader *xml, int limit)
|
||||||
auto *newZone = new InnerDecklistNode(xml->attributes().value("name").toString(), this);
|
auto *newZone = new InnerDecklistNode(xml->attributes().value("name").toString(), this);
|
||||||
totalCards += newZone->readElement(xml, limit - totalCards);
|
totalCards += newZone->readElement(xml, limit - totalCards);
|
||||||
} else if (childName == "card") {
|
} else if (childName == "card") {
|
||||||
int amount = xml->attributes().value("number").toString().toInt();
|
int amount = xml->attributes().value("number").toString().toInt();
|
||||||
amount = qMin(amount, limit - totalCards);
|
amount = qMin(amount, limit - totalCards);
|
||||||
auto *newCard = new DecklistCardNode(
|
auto *newCard = new DecklistCardNode(xml->attributes().value("name").toString(), amount, this, -1,
|
||||||
xml->attributes().value("name").toString(), amount,
|
xml->attributes().value("setShortName").toString(),
|
||||||
this, -1, xml->attributes().value("setShortName").toString(),
|
xml->attributes().value("collectorNumber").toString(),
|
||||||
xml->attributes().value("collectorNumber").toString(), xml->attributes().value("uuid").toString());
|
xml->attributes().value("uuid").toString());
|
||||||
totalCards += amount;
|
totalCards += amount;
|
||||||
totalCards += newCard->readElement(xml, limit - totalCards);
|
totalCards += newCard->readElement(xml, limit - totalCards);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue