mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
Minor cleanup
This commit is contained in:
parent
0ea29b1eb3
commit
050c86cee6
1 changed files with 3 additions and 3 deletions
|
|
@ -108,9 +108,9 @@ static void setupParserRules()
|
||||||
};
|
};
|
||||||
search["RarityQuery"] = [](const peg::SemanticValues &sv) -> Filter {
|
search["RarityQuery"] = [](const peg::SemanticValues &sv) -> Filter {
|
||||||
StringMatcher matcher = sv[0].get<StringMatcher>();
|
StringMatcher matcher = sv[0].get<StringMatcher>();
|
||||||
return [=](CardData x) -> bool {
|
return [=](const CardData &x) -> bool {
|
||||||
for (const auto &y : x->getSets().values()) {
|
for (const auto &cardInfoPerSetList : x->getSets().values()) {
|
||||||
for (const auto &set : y) {
|
for (const auto &set : cardInfoPerSetList) {
|
||||||
if (matcher(set.getProperty("rarity")))
|
if (matcher(set.getProperty("rarity")))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue