UI: added draft rating column to deck editor

This commit is contained in:
Oleg Agafonov 2019-02-01 18:57:24 +04:00
parent 0c8fdfcaf2
commit 0697cbe24c
3 changed files with 22 additions and 9 deletions

View file

@ -78,6 +78,10 @@ public final class RateCard {
}
public static int rateCard(Card card, List<ColoredManaSymbol> allowedColors, boolean useCache) {
if (card == null) {
return 0;
}
if (useCache && allowedColors == null && rated.containsKey(card.getName())) {
int rate = rated.get(card.getName());
return rate;