mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 16:43:55 -07:00
Better handle the TK set used for tokens
Let oracle add a basic TK set in cards.xml Unify all the code previously using the string literal “TK”
This commit is contained in:
parent
8542d875d3
commit
ac43fa23b9
4 changed files with 9 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ void DlgEditTokens::actAddToken()
|
|||
return;
|
||||
|
||||
CardInfo *card = new CardInfo(cardDatabaseModel->getDatabase(), name, true);
|
||||
card->addToSet(cardDatabaseModel->getDatabase()->getSet("TK"));
|
||||
card->addToSet(cardDatabaseModel->getDatabase()->getSet(CardDatabase::TOKENS_SETNAME));
|
||||
card->setCardType("Token");
|
||||
cardDatabaseModel->getDatabase()->addCard(card);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue