mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Added some font color to object and player names output to game logging and feedback area.
This commit is contained in:
parent
c3ea08b59c
commit
9c97953b6b
384 changed files with 745 additions and 636 deletions
|
|
@ -24,7 +24,7 @@ import java.util.*;
|
|||
public class RateCard {
|
||||
|
||||
private static Map<String, Integer> ratings;
|
||||
private static Map<String, Integer> rated = new HashMap<String, Integer>();
|
||||
private static final Map<String, Integer> rated = new HashMap<>();
|
||||
private static Integer min = Integer.MAX_VALUE, max = 0;
|
||||
|
||||
/**
|
||||
|
|
@ -47,16 +47,17 @@ public class RateCard {
|
|||
* If allowedColors is null then the rating is retrieved from the cache
|
||||
*
|
||||
* @param card
|
||||
* @param allowedColors
|
||||
* @return
|
||||
*/
|
||||
public static int rateCard(Card card, List<ColoredManaSymbol> allowedColors) {
|
||||
if (allowedColors == null && rated.containsKey(card.getName())) {
|
||||
return rated.get(card.getName());
|
||||
}
|
||||
int type = 0;
|
||||
int type;
|
||||
if (card.getCardType().contains(CardType.PLANESWALKER)) {
|
||||
type = 15;
|
||||
} if (card.getCardType().contains(CardType.CREATURE)) {
|
||||
} else if (card.getCardType().contains(CardType.CREATURE)) {
|
||||
type = 10;
|
||||
} else if (card.getSubtype().contains("Equipment")) {
|
||||
type = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue