mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Decklist testing (#2537)
This commit is contained in:
parent
ef7670a1e6
commit
9cbae8c707
6 changed files with 173 additions and 5 deletions
|
|
@ -173,11 +173,11 @@ float InnerDecklistNode::recursivePrice(bool countTotalCards) const
|
|||
bool InnerDecklistNode::compare(AbstractDecklistNode *other) const
|
||||
{
|
||||
switch (sortMethod) {
|
||||
case 0:
|
||||
case ByNumber:
|
||||
return compareNumber(other);
|
||||
case 1:
|
||||
case ByName:
|
||||
return compareName(other);
|
||||
case 2:
|
||||
case ByPrice:
|
||||
return comparePrice(other);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue