mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
typo
This commit is contained in:
parent
66a70dd116
commit
5b7ab0de7a
2 changed files with 12 additions and 14 deletions
|
@ -238,25 +238,24 @@ public class GathererSets implements Iterable<DownloadJob> {
|
||||||
}
|
}
|
||||||
//*/
|
//*/
|
||||||
|
|
||||||
// 3. wrong sets config with alternative numbers
|
// 3. info: sets with alternative numbers
|
||||||
// TODO: some sets have cards above maxCardNumberInBooster, need to check it (search code for maxCardNumberInBooster), maybe delete at all after getCardNumberAsInt implement
|
|
||||||
if ((set.getMaxCardNumberInBooster() == 0) || (set.getMaxCardNumberInBooster() == Integer.MAX_VALUE))
|
|
||||||
{
|
|
||||||
for(ExpansionSet.SetCardInfo card: set.getSetCardInfo()){
|
for(ExpansionSet.SetCardInfo card: set.getSetCardInfo()){
|
||||||
if (String.valueOf(card.getCardNumberAsInt()).length() != card.getCardNumber().length()){
|
if (String.valueOf(card.getCardNumberAsInt()).length() != card.getCardNumber().length()){
|
||||||
logger.error(String.format("Symbols: set have alternative card but do not config to it: %s (%s)", set.getCode(), set.getName()));
|
logger.info(String.format("Symbols: set have alternative card but do not config to it: %s (%s)", set.getCode(), set.getName()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 4. have nonland card above maxboosternumber (info)
|
// 4. info: sets with missing cards for boosters (todo: what about +20 number for alternative land arts?)
|
||||||
if (set.getMaxCardNumberInBooster() != Integer.MAX_VALUE)
|
if (set.getMaxCardNumberInBooster() != Integer.MAX_VALUE)
|
||||||
{
|
{
|
||||||
for(ExpansionSet.SetCardInfo card: set.getSetCardInfo()){
|
for(ExpansionSet.SetCardInfo card: set.getSetCardInfo()){
|
||||||
if (card.getRarity() == Rarity.LAND) { continue; }
|
|
||||||
if (card.getCardNumberAsInt() > set.getMaxCardNumberInBooster()){
|
if (card.getCardNumberAsInt() > set.getMaxCardNumberInBooster()){
|
||||||
logger.error(String.format("Symbols: set setup to cut off cards for boosters, non land card will be missing: %s (%s), %s - %s", set.getCode(), set.getName(), card.getCardNumber(), card.getName()));
|
if (card.getRarity() == Rarity.LAND) {
|
||||||
|
logger.info(String.format("Symbols: set's booster have land above max card number: %s (%s), %s - %s", set.getCode(), set.getName(), card.getCardNumber(), card.getName()));
|
||||||
|
}else {
|
||||||
|
logger.info(String.format("Symbols: set's booster missing nonland card:: %s (%s), %s - %s", set.getCode(), set.getName(), card.getCardNumber(), card.getName()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -393,8 +393,7 @@ public abstract class ExpansionSet implements Serializable {
|
||||||
criteria.doubleFaced(false);
|
criteria.doubleFaced(false);
|
||||||
}
|
}
|
||||||
savedCardsInfos = CardRepository.instance.findCards(criteria);
|
savedCardsInfos = CardRepository.instance.findCards(criteria);
|
||||||
// Workaround after card number is numeric (p.s. card number is not numeric for some cards)
|
// Workaround after card number is numeric
|
||||||
// TODO: some sets have фывфывфывфывфыв
|
|
||||||
if (maxCardNumberInBooster != Integer.MAX_VALUE) {
|
if (maxCardNumberInBooster != Integer.MAX_VALUE) {
|
||||||
savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster && rarity != Rarity.LAND);
|
savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster && rarity != Rarity.LAND);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue