mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Improved token loading
This commit is contained in:
parent
339945e089
commit
36f6907fa3
10 changed files with 79 additions and 53 deletions
|
|
@ -20,9 +20,9 @@ struct DecklistBuilder {
|
|||
explicit DecklistBuilder() : actualMainboard({}), actualSideboard({}) {}
|
||||
|
||||
void operator()(const InnerDecklistNode *innerDecklistNode, const DecklistCardNode *card) {
|
||||
if (innerDecklistNode->getName() == "main") {
|
||||
if (innerDecklistNode->getName() == DECK_ZONE_MAIN) {
|
||||
actualMainboard[card->getName()] += card->getNumber();
|
||||
} else if (innerDecklistNode->getName() == "side") {
|
||||
} else if (innerDecklistNode->getName() == DECK_ZONE_SIDE) {
|
||||
actualSideboard[card->getName()] += card->getNumber();
|
||||
} else {
|
||||
FAIL();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue