mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
UI: added draft rating column to deck editor
This commit is contained in:
parent
0c8fdfcaf2
commit
0697cbe24c
3 changed files with 22 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue